I know this shouldn’t be done.. but i need the home page to be the login page
My sessions new is inside
View> Users > Sessions > New
Help? How do i root it i’ve tried root :to => “Users/sessions#new” without succsess
uninitialized constant Users
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Instead of complicated routes, you could just do this in controller. In whichever controller’s action normally handles rendering of the Home page, redirect to the new user session page if there is no user logged in.
If you have no explicitly defined action because you’re relying on Rails defaults, just write a new, very simple action that redirects if there’s nobody logged in, else drops through and lets Rails take care of rendering.