Route alias in Rails
Solution 1:
resources :stories, :path => :books
If you want to rename the path AND helper methods, then you do:
resources :stories, :path => :books, :as => :books
See: Overriding the Named Helpers
Solution 2:
That's why they made the path
option on match
which is also available on resources
:
resources :stories, :path => "books"