开发者

Rails - Creating a Landing Page, which is different than the Web App

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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜