More info in this blog post
def render(*args) args.first[:layout] = false if request.xhr? and args.first[:layout].nil? super end
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
def render(*args) args.first[:layout] = false if request.xhr? and args.first[:layout].nil? super end
You need to create an account or log in to post comments to this site.
» jQuery and Rails' respond_to in ruby rails javascript rubyonrails ajax js jquery respond_to
» ajax_request? method to XHR ... in ruby rails rubyonrails ajax xhr xmlhttprequest
» create a rails app from rail... in ruby rails shell svn bash subversion rubyonrails
» Extend FileColumn to work wi... in ruby rails rubyonrails
» Extend FileColumn to work wi... in ruby rails rubyonrails
» Extend FileColumn to work wi... in ruby rails rubyonrails
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails