Update.

So upon further investigation it appears as though the issue comes from 
my model directory structure. I have a lot of models, so I've placed 
some into folders (but not namespaced), and auto-loaded the models using 
something like:

 config.autoload_paths += %W(app/models/users/)

Apparently, this works great in development, but breaks down in test or 
production environments. My first question is - does anyone know why?

Although the users folder contains quite a few models, the only one that 
appears to break anything is the User model. If I pull the user.rb class 
up one level into app/models, not only does everything seem to run, but 
I can also still access the other models that are in the 
app/models/users directory. So, my second question is - why just the 
users model?

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to