Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Don't show application layout on popup window using Rails

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

I'm just about to add several popup windows. These shall not inherit and display the application template.

How can I exclude several views from loading the application template?


Any help would be very appreciated.

like image 416
road242 Avatar asked Jan 24 '10 19:01

road242


1 Answers

In the action for those views render with layout false:

class YourController

  def popup
    render :layout => false
  end

end
like image 88
tfwright Avatar answered Nov 07 '22 03:11

tfwright