Devise: Sign Up Page as Welcome/Landing Page then to User Profile

后端 未结 5 699
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-01 08:57

Using devise, how do i make my Sign Up as my landing/welcome page and then after sign up they go inside the site to the Profile/signed in area?

I am trying to figure out

5条回答
  •  执笔经年
    2021-02-01 09:36

    in your routes.rb:

    root :to => 'welcome#index'
    

    Where welcome is the controller and index is the action.

    In your application controller:

    def after_sign_in_path_for(user)
       "/url_you_want_to_redirect_to/"
    end
    

提交回复
热议问题