Showing app/views/story/index.rhtml where line #2 raised:
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
Extracted source (around line #2):
Showing app/views/story/index.rhtml where line #2 raised:
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
Extracted source (around line #2):
Your @stories instance variable is nil, meaning it doesn’t exist or has
no data in it. In your story controller index method, are you creating
the instance variable called @stories?