Model named Application

I have a database table named applications which (in Rails convention)
produces model named Application in file app/models/application.rb. The
application.rb file doesn’t seem to be loaded as I get a ‘const_missing’
error when trying to access it. If I handcraft the class within
script/console, everything works fine.

Is there something in the Rails loader that doesn’t load
app/models/application.rb, perhaps to limit conflict with


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs