开发者

ruby on rails: application layout appearing in popup

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜