开发者

rails 3.1: using plain .html file instead of html.erb

开发者 https://www.devze.com 2023-04-11 01:33 出处:网络
I have a resume and a profile page that only has html and css. How would you route plain html file in a pre-existing Rails 3.1.0 app?

I have a resume and a profile page that only has html and css.

  1. How would you route plain html file in a pre-existing Rails 3.1.0 app? I want resume to have whatever.com/resume as the url.

  2. Where should I place the html, css, image for this kind of static page?

开发者_运维知识库

Thank you.

[edit 1] I don't want application layout to affect these pages.


Static files can be served as is, so long as they are accessible from within the assets or public folders. No fancy routing is required.

0

精彩评论

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