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).
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).