plataformatec/devise — Issue #1582: devise_for path/format not passed to block
Author: masterkain
Created: 2012-01-19 13:06:08+00:00
State: open

Sample working code:

devise_for :users, controllers: { omniauth_callbacks: 'users/omniauth_callbacks', registrations: 'users/registrations' }, format: false, path: 'account' do
get '/account/thank_you', to: 'users/registrations#thank_you', as: :new_user_registration_thank_you, format: false
end

If in block I write the route without passing manually the path and format:

get 'thank_you', to: 'users/registrations#thank_you', as: :new_user_registration_thank_you

This is the result:

new_user_registration_thank_you GET /thank_you(.:format) users/registrations#thank_you

As you can see both the path and format gets ignored.

I'm not sure it is intended, so I'll report anyway.