开发者

ruby on rails: application layout appearing in popup

开发者 https://www.devze.com 2023-02-13 11:23 出处:网络
In my RoR application, I have a link which ope开发者_JS百科ns up a popup window. I am using a different stylesheet for the popup but the problem is that it\'s displaying the menubar & banner defin

In my RoR application, I have a link which ope开发者_JS百科ns up a popup window. I am using a different stylesheet for the popup but the problem is that it's displaying the menubar & banner defined in the main application.html.erb. I want my popup window to be simple and don't want it to contain the main banner of the menu bar and although am using a seperate stylesheet, the main menu/banner are still displayed.

Can someone please shed some light on this for me.

Thanks a lot for your help


Here's some documentation

If you don't want the layout to render

render :layout => false

or

layout nil


Use

render :layout => false

in the action that is used in the popup

0

精彩评论

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