I just implemented a new homepage using public/index.html which I read that it overrides a lot of the routes.
I originally had root to: static_pages#home
and in my static_pages\home.html.erb
view if a user was logged in, they saw the logged in homepage and the anonymous visitor (public/index.html) homepage if not logged in.
After implementing public/index.html, I created a new route for logged in users and made previous root_path redirects to home_path
get '/home' => 'static_pages#home', :as => :home
However, I would like to use http://localhost:3000
as the homepage for both logged in and visitor homepages. Is this possible? How can I have visitors see the current public/index.html which works good right now, but not have to use http://localhost:3000/home
after login? I want http://localhost:3000
after login as well.
Thanks