开发者

<BODY> of the views in a "scaffolded" Ruby on Rails 3 web-app

开发者 https://www.devze.com 2023-02-15 07:07 出处:网络
do you know how can i modify the <BODY> tag of the rendered htmls files of my app\'s views? I mean, i can manually edit the html, but the <BODY> tag is added automatic in run ti开发者_如何

do you know how can i modify the <BODY> tag of the rendered htmls files of my app's views? I mean, i can manually edit the html, but the <BODY> tag is added automatic in run ti开发者_如何转开发me... And i'd like to do something like

<body bgcolor="#0000FF">

Thanks!


You need to edit the application.html.erb in the layouts subfolder of views in your application.

Of course, you'd be much better of doing this in a stylesheet rather than the markup directly :)

0

精彩评论

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

关注公众号