/ 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