Rails Devise: How to access sign up page after signed in?

后端 未结 3 1366
我寻月下人不归
我寻月下人不归 2021-02-10 07:46

I am new with rails and i am using \"devise\" gem for authentication purposes.

At first i add a new user through default sign up page (E.g./users/sign_up)

Then,

3条回答
  •  清歌不尽
    2021-02-10 08:31

    If you are getting redirected it probably means you are not properly authenticated when you navigate to that page, seeing as it requires a valid user session.

    Please post your Registrations controller file as well.

    If you are getting redirected it probably means you are not properly authenticated when you navigate to that page, seeing as it requires a valid user session.

    Please post your Registrations controller file as well.

    Addition:

    As you can see in the devise source if you navigate to the sign_up it executes the before_filter require_no_authentication and this redirects to the root path which you can find here.

    I think you will have to explicitly override the registrations_controller that I linked first if you really want to override this behaviour :-)

提交回复
热议问题