Created
August 27, 2008 00:15
-
-
Save jamiew/7383 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# never render the full layout if it's an XmlHttpRequest | |
class ApplicationController < ActionController::Base | |
def render(*args) | |
args.first[:layout] = false if request.xhr? and args.first[:layout].nil? | |
super | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment