Reputation: 507
I'm rails I've been building a web app.
But the web app is completely different than what the landing page (sign in, register, about, etc should look like)
How do rails developers handle this? Different layouts? Different CSS files? etc..
what's cleanest? Thanks
Upvotes: 2
Views: 4581
Reputation: 10348
You could create a HomePage controller (with associated views), and write the index action for that.
If the layout for the home page is going to be different from the application's again, then in the app/views/layouts/ folder, create a home_page.html.erb
template. This will automatically be used by a HomePageController instead of the default application.html.erb template.
Upvotes: 9