Return to Snippet

Revision: 15573
at July 10, 2009 12:33 by deschism


Initial Code
def render(*args)
  	args.first[:layout] = false if request.xhr? and args.first[:layout].nil?
	super
end

Initial URL

                                

Initial Description

                                

Initial Title
Remove Layouts from Ajax Requests

Initial Tags
ajax, rails, layout

Initial Language
Rails