Thanks for your help Colin!

My logs :

Started GET "/users/index" for 127.0.0.1 at Thu Oct 18 23:01:19 +0200 2012
Processing by UsersController#index as HTML

Rendered users/index.html.erb within layouts/application (0.6ms)

Completed 500 Internal Server Error in 140ms

ActionView::Template::Error (undefined method `each' for nil:NilClass):
1: <% @users.each do |user| %>

2: <h1><%= user.username %></h1>

3:

4: <% end %>

app/views/users/index.html.erb:1:in
`_app_views_users_index_html_erb___162613411_2191123680'
I think the problem is the Error 500...? It's strange because if you try
the link in the browser it's works...
Thanks for your help!

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/35Kf2uqK6fAJ.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 13 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedOct 19, '12 at 10:49a
activeOct 21, '12 at 9:17p
posts13
users3
websiterubyonrails.org
irc#RubyOnRails

People

Translate

site design / logo © 2021 Grokbase