The line "uninitialized constant User" is telling you that it
can''t find the
User Active Record class. Do you have the login_system gem installed on
your server? The file which contains the User class must be in your rails
path.
-----Original Message-----
From: rails-bounces@lists.rubyonrails.org
[mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of heri
Sent: Saturday, May 27, 2006 6:09 AM
To: rails@lists.rubyonrails.org
Subject: [Rails] NameError / active_support/dependencies
hi everyone
in my dev machine, everything works flawlessly
now when i uploaded my website on the server, it cannot acces User model
anymore. all other pages work by the way.
when i try to access User on console or by web, it shows:
NameError in UsersController#signup
uninitialized constant User
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependenc
ies.rb:100:in
`const_missing''
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependenc
ies.rb:131:in
`const_missing''
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependenc
ies.rb:133:in
`const_missing''
#{RAILS_ROOT}/app/controllers/users_controller.rb:168:in `signup''
note: the User model is used for logingenerator (login_system) gem
i have no clue what is going on. the table Users exists in my db. ????
thanks.
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Rails mailing list
Rails@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails