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