This is a bit frustrating. A while back ago I ran into this same error and I restarted my webrick server and it worked fine. This time I ran into this error and again I tried to restart my webrick server thinking that this would be the fix and it's not. I can't understand why I'm getting this error again.
My setup is I generated a controller called author. I generated my controller this way:
ruby script/server generate controller 'admin/author'
The exact error is:
Here's my routes file:No route matches "/admin/" with {:method=>:get}
My url looks like this: http://localhost:3000/admin/ I also tried http://localhost:3000/admin/index and still nothing works. I restarted my the server several times and I'm still getting this error. Is anyone else dealing with this?Code:ActionController::Routing::Routes.draw do |map| map.connect 'admin/:controller/:action/:id' map.connect 'admin/:controller/:action/:id.:format' map.connect ':controller/:action/:id' map.connect ':controller/:action/:id.:format' end
UPDATED:
I solved this by deleting the index.html file in the public folder. Dang what a noob!




Bookmarks