I have bumped into a weird case that almost seems like a bug or… a
total newbie mistake.
After generating a controller with
rails g controller store index
I expected to get a page when accessing http://site:3000/store
but instead I got No route matches “/store”.
config/routes.rb has got: get “store/index”
and everything works when accessing http://site:3000/store/index
Webrick restart did not help.
$ ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
$ rails -v
$ gem -v