Pregunta

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.

¿Fue útil?

Solución

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 bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top