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. 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.
精彩评论