Thursday, 19 September 2013

How to make Sign up page be root page in Devise?

How to make Sign up page be root page in Devise?

I'm running on Rails 4.0.0 with Devise 3.1.0. My routes are setup like this:
devise_for :users do
root "devise/registrations#new"
end
resources :books
What I'm trying to do is make the Devise Sign Up Page be the Welcome Page
for users if they haven't signed in but if their signed in they'll go to
the Book Index. Right now it just gives me the standard Ruby on
Rails:Welcome Aboard page as if Devise doesn't exist. How would I do this?

No comments:

Post a Comment