Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top