开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜