How about trying 'User1.find(:all)' in the console ('rails console')?
Or use the debugger and step into the index method to see if/where
@users isn't being populated.
On Jan 20, 5:40 pm, "Simon M." <[email protected]> wrote:
> NoMethodError in User1#index
> Showing app/views/user1/index.html.erb where line #6 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.each
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.