Posted By

deschism on 07/10/09


Tagged

ajax rails layout


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

webstic
almazom


Remove Layouts from Ajax Requests


 / Published in: Rails
 

  1. def render(*args)
  2. args.first[:layout] = false if request.xhr? and args.first[:layout].nil?
  3. super
  4. end

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: deschism on July 10, 2009

Place in application controller

Posted By: almazom on October 14, 2009

intresting

Posted By: blakelively12 on October 8, 2018

Google

Posted By: blakelively12 on October 8, 2018

Google

Posted By: blakelively12 on October 8, 2018

A thesis can be the most confounded and longest bit of composing for an understudy. It is in actuality an awkward errand.Top Assignment Writers

Posted By: bellaraine on December 6, 2018

I did enjoyed reading this content; I am bookmarking your blog and definitely will come back again.[url=https://www.prosouthclean.com]Deck & Fence Staining[/url]

You need to login to post a comment.