Forum: Ruby on Rails NameError / active_support/dependencies

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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

/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:100:in
`const_missing'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in
`const_missing'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.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.
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
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.
This topic is locked and can not be replied to.