/ Published in: Rails
Expand |
Embed | Plain Text
def render(*args) args.first[:layout] = false if request.xhr? and args.first[:layout].nil? super end
Comments
Subscribe to comments
You need to login to post a comment.
deschism on 07/10/09
2 people have marked this snippet as a favorite
def render(*args) args.first[:layout] = false if request.xhr? and args.first[:layout].nil? super end
Subscribe to comments
You need to login to post a comment.
Place in application controller
intresting