Help: Locomotive - error

T

tuaregue

In the browser I have this error, I'm a newbie.

NameError in NotasController#index


uninitialized constant Nota

RAILS_ROOT: /Users/marco/Sites/Dev/notas
Application Trace | Framework Trace | Full Trace

/Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/
lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:266:in `load_missing_constant'
/Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/
lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:452:in `const_missing'
/Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/
lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:464:in `const_missing'
/Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/
lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
inflector.rb:250:in `constantize'
/Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/
lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/
string/inflections.rb:148:in `constantize'
/Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/
lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/
pagination.rb:195:in `paginator_and_collection_for'
/Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/
lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/
pagination.rb:130:in `paginate'
#{RAILS_ROOT}/app/controllers/notas_controller.rb:12:in `list'
#{RAILS_ROOT}/app/controllers/notas_controller.rb:3:in `index'
/Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/
bin/mongrel_rails:16:in `load'
/Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/
bin/mongrel_rails:16

This occurred after I run the command ruby script/generate scaffold
(table name).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top