Application Trace | Framework Trace | Full Trace
/Applications/Locomotive/Bundles/rails-1.0.0-max.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:200:in const_missing' /Applications/Locomotive/Bundles/rails-1.0.0-max.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:72:in const_missing’
generated/routing/recognition.rb:4:in `recognize_path’
This error occured while loading the following files:
note_controller.rb
Does your note_controller.rb have an “index” method? If it calls the
list action (as scaffoling generates), is your views/note/list.rhtml in
place? If not and you defined an index action of your own, do you have a
matching view?
If none of this sheds any light, try changing your route so that it
calls not just the controller but also a specific action that you know
works.
Application Trace | Framework Trace | Full Trace
/Applications/Locomotive/Bundles/rails-1.0.0-max.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:200:in const_missing' /Applications/Locomotive/Bundles/rails-1.0.0-max.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:72:in const_missing’
generated/routing/recognition.rb:4:in `recognize_path’
This error occured while loading the following files:
note_controller.rb
Application Trace | Framework Trace | Full Trace
/Applications/Locomotive/Bundles/rails-1.0.0-max.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:200:in const_missing' /Applications/Locomotive/Bundles/rails-1.0.0-max.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:72:in const_missing’
generated/routing/recognition.rb:4:in `recognize_path’
This error occured while loading the following files:
note_controller.rb
Where is the problem ?
Bolo
What is the name of your controller ?
Did http://localhost:3000/notes was ok ?
the name in the the route.rb must be the same as the controller you
want to map. In this case , you must have a notes_controller.rb
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.