문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top