Forum: Ruby on Rails NameError / active_support/dependencies

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
heri (Guest)
on 2006-05-27 20:09
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

#{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. ????

heri (Guest)
on 2006-05-27 20:38
ok it is solved

i dont know why but when filezilla uploaded the files, it swapped
user.rb and usertab.rb contents.

i have seen the same problem in several .rhtml files.

weird and annoying bug. i thought it was a problem with ruby/rails
Daniel H. (Guest)
on 2006-05-27 20:44
(Received via mailing list)
The line "uninitialized constant User" is telling you that it can't find
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
This topic is locked and can not be replied to.