/ Published in: Rails
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
def render(*args)
args.first[:layout] = false if request.xhr? and args.first[:layout].nil?
super
end
Comments
 Subscribe to comments
                    Subscribe to comments
                
                