Hi Michael,
Michael Satterwhite wrote:
I have a view template "list_users.rhtml". On one line,
I have
<% @users = User.find(:all) %>
You should be doing this in your controller, not your view.
Problem: When I invoke list_user.rhtml,
What to you mean "invoke"?
Bill
Michael Satterwhite
Bill Walton wrote:
Hi Michael,
Problem: When I invoke list_user.rhtml,
What to you mean "invoke"?
Bad choice of words. Actually rails invokes it when the list_users
action in the controller is called.
Have you tried moving the find into the controller? If so and you're still having problems, you'll need to supply more info.
Sorry I can't be more help yet.
Best regards,
Bill