I have this setup for Devise
devise_for :users, :controllers => {
:confirmations => "confirmations",
:registrations => "registrations"} do
put "confirm_user", :to => "confirmations#confirm_user"
end
and when I run
rake route
I have get strange routes for registrations_controller specialy the edit_path
edit_user_registration GET /users/edit(.:format) registrations#edit
PUT /users(.:format) registrations#update
DELETE /users(.:format) registrations#destroy
The problem is edit url for example for first user.
I expected
/users/1/edit
but I have get
/users/edit.1
I expect this route can not work but it does. Now I am not sure if I have made some mistake or if the devise generate the routes this way.
And if it generate routes that way where goes the format of request?
I can not believe that the URL might look like this.
/users/edit.1.js
Thanks for any advise?