简体   繁体   中英

ruby on rails: application layout appearing in popup

In my RoR application, I have a link which opens 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

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM