[英]Can I have a page in my Ruby on Rails app that doesn't use my application.html.erb template?
I'm using application.html.erb
in the views/layouts
folder of my Ruby on Rails web app as a template. 我正在Ruby on Rails Web应用application.html.erb
的views/layouts
文件夹中使用application.html.erb
作为模板。 But there's one page in which I don't want the template to be used. 但是有一页我不希望使用模板。 Is this possible? 这可能吗?
Sure, just do 当然可以
render :layout => false
in the bottom of your action. 在行动的最底层。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.