Revision: 2044
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 23, 2006 11:00 by vanne
Initial Code
layout proc{ |c| c.request.xhr? ? false : "application" }
Initial URL
http://artofmission.com/articles/2006/12/20/turn-off-rails-layouts-for-ajax-requests
Initial Description
This allows you to turn off ajax requests application wide, so that you don't have to do render :layout => false in every controller that needs it.
Initial Title
Turn off Rails Layouts for AJAX Requests
Initial Tags
rails, ruby
Initial Language
Ruby