开发者

Can I have a page in my Ruby on Rails app that doesn't use my application.html.erb template?

开发者 https://www.devze.com 2022-12-30 05:46 出处:网络
I\'m using application.html.erb in the views/layouts folder of my Ruby on Rails web app as a template. But there\'s one page in which I don\'t want the te开发者_运维知识库mplate to be used. Is this po

I'm using application.html.erb in the views/layouts folder of my Ruby on Rails web app as a template. But there's one page in which I don't want the te开发者_运维知识库mplate to be used. Is this possible?


Sure, just do

render :layout => false

in the bottom of your action.

0

精彩评论

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

关注公众号