I'm on page 340 in the Simply Rails book, but when I was trying to test the Shovell application, the application catches an error from a previous part of the book.
The error is:
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.size

Here's the problematic code:
1: <h2>
2: <%= "Showing #{ pluralize(@stories.size, 'story') }" %>
3: </h2>
4: <% render artial => @stories %>

There is something wrong with line 2. I am too unfamiliar with Ruby code to figure it out.