How can I get Rails to exclude application.erb when rendering the layout?

I am making an AAJX request to action in a controller. I get the displayed HTML and display it in a tag on the current page. The view I'm posting to is displaying a layout with default application.erb. I would like the rails to use the default layout for the controller / action, but not display the main application.erb file. How to do it?

+7
source share
1 answer

You can tell render not to use the application layout with render :layout => false

+12
source

All Articles