concept content in category rails

appears as: content, content, contents
Rails 3 in Action

This is an excerpt from Manning's book Rails 3 in Action.

Going back to the view, the block for the form_for is defined between its do and the %> at the end of the file. Inside this block, you check the @purchase object for any errors by using the @purchase.errors.any? method. These errors will come from the model if the object did not pass the validation requirements set in the model. If any errors exist, they’re rendered by the content inside this if statement. Validation is a concept covered shortly.

Next, you want to generate the skeleton for Cucumber. A generator can generate either static or dynamic content, depending on the generator. For the Cucumber skeleton generator, it’s set content. To run this generator, you use the rails command

Why are you getting an error seemingly from RSpec? Because Capybara uses its helpers internally to determine if it can find content. This error therefore means that Capybara can’t find the content it’s looking for. What content? Have a look at the last line of the backtrace:

features/creating_projects.feature:13:

Line 13 of features/creating_projects.feature is the And I should see "TextMate 2 - Projects - Ticketee" step, which checks for content shown on the page. To make this step pass, you need to define the content it should see. Write the code from the following listing into app/views/projects/show.html.erb.