Pergunta

I want to remove the default sign up path or just route the sign_up path to sign_in. Is it possible to do so? I want to retain the change password option. so removing registerable on model is not a good idea. Thanks.

Foi útil?

Solução

You can use devise_scope for the same. In your routes.rb file define a scope like following before devise_for.

devise_scope :user do get "users/sign_up", :to => "devise/sessions#new", :as => :sign_up end

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top