On Saturday I installed Ruby 1.8.2, Rails 1.0.0 and MySql 5.0.18 on a
new laptop running Windows XP home. I used Gem to install Rails. Gem
came packaged with Rails in the standard download from
I put together an app using scaffold and everything worked fine.
Last night (Sunday) I attempted to add in Login functionality. I was
going to code thing by hand but noticed that there is a Login generator
available. I installed int with gem install login_generator. I updated
the users table in my database to match the Login generator schema and
ran script/generate login to create a Login controller. I had no errors
during this process.
After doing the above, actions that had been working now give an error
saying unitialized constant xyz where xyz is the name of the model. I
reinstalled various bits and pieces and nothing worked so eventually I
re-imaged the whole machine and built it from scratch, just to make sure
that noting had been left lying around. I did a simple generate against
a table called users with columns for id and name. Everything seemed to
generate OK but when I run the app I get the same problem.
I can’t think of what might be wrong. The only posibility seems to be
some change in the dependencies that are picked when I do gen install
Has anyone else experienced this or something similar?
Any suggestions would be most welcome.
I can supply the exact error message later if required, when I get in