Don't show application layout in popup using Rails

I have a rails application using views / layouts / application.html.erb as the default site template.

I am going to add some popups. They should not inherit and display the application template.

How can I exclude multiple views from loading an application template?


Any help would be greatly appreciated.

+5
source share
1 answer

In action for these views, render with the layout false:

class YourController

  def popup
    render :layout => false
  end

end
+19
source

All Articles