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