I am using Ruby on Rails 3.2.2 and I would like to “use” the /users/sign_up PATH instead of /users/new in order to register new users to my application.
How can I make that “a là Ruby on Rails Way”?
Note: at this time I am using the following code in the routes.rb file but I think it isn’t the best way to accomplish that I am looking for:
resources :users, :except => [:new] do
collection do
get 'sign_up'
end
end
What would you advise?
This should work:
Its in the docs here