I have a view template “list_users.rhtml”. On one line, I have
<% @users = User.find(:all) %>
in my models directory I have a file user.rb which starts with the line
class User < ActiveRecord::Base
Problem: When I invoke list_user.rhtml, I’m getting the error
“Uninitialized constant User” which points at the User.find line listed
above. It’s my understanding that find is built into the ActiveRecord
class, so I think this is implying that it doesn’t see my class. Why?
What else might I need to do to make sure my model file gets loaded?
thanks in advance