Can I rename a resource in routes.rb?
routes, ruby, ruby-on-rails, ruby-on-rails-4
Solution
You can use `path` option of `resources` method:
resources :users, path: :people
Problem
In `routes.rb`, I currently have `resources :users` for the `User` controller. A visitor can request the `User` model by `www.mydomain.com/users` I would like to keep the User controller as it is, but have the URL request for `people` instead, such that a visitor sees the following URL: `www.mydomain.com/people` For a single request I can do this by: ``` get '/users', to: 'users#index' ``` Is the same possible for for a resource map?