This is my first time trying to use rails.
I have done nothing beyond generating the scaffolding.
When I try to view any of the generic pages I get this: NameError in
Controller#index
It happens for every table. This is actually more consistent that the
behavior I was getting before. Two of my pages worked just fine but
the others would give this error. I tried wiping everything and
starting from scratch. Now I get this error everywhere, as comforting
as that is.
It will also complain about an uninitialized constant
Any help would be greatly appreciated.
NameError in TechniciansController#index
uninitialized constant Technician
RAILS_ROOT: C:/rails_apps/AT/config/…
Application Trace | Framework Trace | Full Trace
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/
dependencies.rb:266:in load_missing_constant' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/ dependencies.rb:452:in
const_missing’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/
dependencies.rb:464:in const_missing' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/ inflector.rb:250:in
constantize’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/
core_ext/string/inflections.rb:148:in constantize' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/ pagination.rb:195:in
paginator_and_collection_for’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/
pagination.rb:130:in paginate' #{RAILS_ROOT}/app/controllers/technicians_controller.rb:12:in
list’
#{RAILS_ROOT}/app/controllers/technicians_controller.rb:3:in `index’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/
dependencies.rb:266:in load_missing_constant' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/ dependencies.rb:452:in
const_missing’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/
dependencies.rb:464:in const_missing' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/ inflector.rb:250:in
constantize’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/
core_ext/string/inflections.rb:148:in constantize' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/ pagination.rb:195:in
paginator_and_collection_for’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/
pagination.rb:130:in paginate' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/ base.rb:1095:in
send’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/
base.rb:1095:in perform_action_without_filters' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/ filters.rb:632:in
call_filter’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/
filters.rb:634:in call_filter' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/ filters.rb:619:in
perform_action_without_benchmark’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/
benchmarking.rb:66:in perform_action_without_rescue' c:/ruby/lib/ruby/1.8/benchmark.rb:293:in
measure’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/
benchmarking.rb:66:in perform_action_without_rescue' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/ rescue.rb:83:in
perform_action’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/
base.rb:430:in send' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/ base.rb:430:in
process_without_filters’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/
filters.rb:624:in process_without_session_management_support' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/ session_management.rb:114:in
process’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/
base.rb:330:in process' c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/dispatcher.rb:41:in
dispatch’
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/
rails.rb:78:in process' c:/ruby/lib/ruby/1.8/thread.rb:135:in
synchronize’
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/
rails.rb:76:in process' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb: 618:in
process_client’
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:
617:in each' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb: 617:in
process_client’
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:
736:in run' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb: 736:in
initialize’
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:
736:in new' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb: 736:in
run’
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:
720:in initialize' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb: 720:in
new’
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:
720:in run' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/ configurator.rb:271:in
run’
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/
configurator.rb:270:in each' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/ configurator.rb:270:in
run’
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/bin/mongrel_rails:
127:in run' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/ command.rb:211:in
run’
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/bin/mongrel_rails:
243
c:/ruby/bin/mongrel_rails:18:in `load’
c:/ruby/bin/mongrel_rails:18
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/
dependencies.rb:266:in load_missing_constant' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/ dependencies.rb:452:in
const_missing’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/
dependencies.rb:464:in const_missing' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/ inflector.rb:250:in
constantize’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/
core_ext/string/inflections.rb:148:in constantize' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/ pagination.rb:195:in
paginator_and_collection_for’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/
pagination.rb:130:in paginate' #{RAILS_ROOT}/app/controllers/technicians_controller.rb:12:in
list’
#{RAILS_ROOT}/app/controllers/technicians_controller.rb:3:in index' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/ base.rb:1095:in
send’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/
base.rb:1095:in perform_action_without_filters' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/ filters.rb:632:in
call_filter’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/
filters.rb:634:in call_filter' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/ filters.rb:619:in
perform_action_without_benchmark’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/
benchmarking.rb:66:in perform_action_without_rescue' c:/ruby/lib/ruby/1.8/benchmark.rb:293:in
measure’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/
benchmarking.rb:66:in perform_action_without_rescue' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/ rescue.rb:83:in
perform_action’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/
base.rb:430:in send' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/ base.rb:430:in
process_without_filters’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/
filters.rb:624:in process_without_session_management_support' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/ session_management.rb:114:in
process’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/
base.rb:330:in process' c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/dispatcher.rb:41:in
dispatch’
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/
rails.rb:78:in process' c:/ruby/lib/ruby/1.8/thread.rb:135:in
synchronize’
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/
rails.rb:76:in process' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb: 618:in
process_client’
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:
617:in each' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb: 617:in
process_client’
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:
736:in run' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb: 736:in
initialize’
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:
736:in new' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb: 736:in
run’
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:
720:in initialize' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb: 720:in
new’
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:
720:in run' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/ configurator.rb:271:in
run’
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/
configurator.rb:270:in each' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/ configurator.rb:270:in
run’
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/bin/mongrel_rails:
127:in run' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/ command.rb:211:in
run’
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/bin/mongrel_rails:
243
c:/ruby/bin/mongrel_rails:18:in `load’
c:/ruby/bin/mongrel_rails:18
Request
Parameters: None
Show session dump
flash: !map:ActionController::Flash::FlashHash {}
Response
Headers: {“cookie”=>[], “Cache-Control”=>“no-cache”}