Related cards:
$ rails new sample_app --skip-test-unit
Create a new rails app without the default unit tests directory.
Rails switch from PUT to PATCH
By the way, previous versions of Rails used PUT in place of PATCH, and Rails 4.0 still supports this usage, but PATCH matches the intended HTTP usage better and is preferred for new applications.
Postgres Command Info
? - list of postgres commands
\h - list of SQL commands
\h select(or whatever) - documentation on a specific command
Capybara and RSpec testing
visit '/static_pages/home'
expect(page).to have_content('Sample App')
Visit simulates visiting the website (provided by capybara), and capybara also gives us a page variable.
Markdown line breaks
If you want to make a line break in markdown, you have to leave two or more spaces, then hit enter.
Like this, see?
Easy.
Posted by Robb Schuneman to Ruby on Rails (2014-04-09 06:12)