# NameError / active\_support/dependencies

**URL:** <https://www.ruby-forum.com/t/nameerror-active-support-dependencies/61800>\
**Category:** Rails\
**Created:** [May 27, 2006, 6:09pm UTC](https://www.ruby-forum.com/t/nameerror-active-support-dependencies/61800 "2006-05-27T18:09:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![heri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/ecb155/32.png) [@heri](https://www.ruby-forum.com/u/heri)\
**Post date:** [May 27, 2006, 6:09pm UTC](https://www.ruby-forum.com/t/nameerror-active-support-dependencies/61800/1 "2006-05-27T18:09:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![heri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/ecb155/32.png) [@heri](https://www.ruby-forum.com/u/heri)\
**Post date:** [May 27, 2006, 6:38pm UTC](https://www.ruby-forum.com/t/nameerror-active-support-dependencies/61800/2 "2006-05-27T18:38:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![heri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/ecb155/32.png) [@heri](https://www.ruby-forum.com/u/heri)\
**Post date:** [May 27, 2006, 6:44pm UTC](https://www.ruby-forum.com/t/nameerror-active-support-dependencies/61800/3 "2006-05-27T18:44:53Z")

</div>

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.
