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 template to be used. Is this possible?
Sure, just do
render :layout => false
in the bottom of your action.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.