Routing error with Rails

D

Dan Munk

Hello,

I am having an issue with Rails and am not sure what to troubleshoot.
I am running Mac OS X.

I executed the command from the Dave Thomas's book.

ruby script/generate scaffold Product Admin

Completed fine. When I access

localhost:3000/Admin

I get the error

Action Controller: Exception Caught, Routing Error Recognition failed
for "/Admin"

In the log I get

ActionController::RoutingError (Recognition failed for "/Admin"):
....

/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:21:in
`require'

/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in
`require'

/opt/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/server.rb:28

/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:21:in
`require'

/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in
`require'
script/server:3

so it looks like some error in activesupport from the stack. However
in irb I can load it no problem...

irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require_gem 'activerecord'
=> true
irb(main):003:0>

Any help would be greatly appreciated.

Thanks,
Dan
 

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,773
Messages
2,569,594
Members
45,114
Latest member
GlucoPremiumReview
Top