Displaying 1 result from an estimated 1 matches for "rkrueger".
Did you mean:
krueger
2008 Nov 25
3
Cannot use "Application" as a model?
...seems to collide with the "ApplicationController" defined in
application.rb.
For example...
rails appgoboom
cd appgoboom
script/generate scaffold Application name:string
script/console
Loading development environment (Rails 2.2.2)
>> Application.find(:all)
LoadError: Expected /home/rkrueger/source/rails/appgoboom/app/
controllers/application.rb to define Application
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:428:in `load_missing_constant''
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:77...