(The distinction between the two types of embedded Ruby is that <%...

...%> executes the code inside, while <%=...

...%> executes it and inserts...

Ruby on Rails

visit '/static_pages/home' expect(page).to have_content('Sample App') Visit simulates visiting the website (provided by capybara), and capybara also...

$ rails generate integration_test static_pages

Ruby on Rails

By the way, previous versions of Rails used PUT in place of PATCH, and Rails 4.0 still supports this usage...

$ rake db:migrate VERSION=0

Create a new rails app without the default unit tests directory.

Best results in other decks

Say we want to filter a table matching pairs of values. E.g. For each account we want to select all...

Search in all decks