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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
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.


Reply via email to