render view without layout in ajax requests
paste in application controller and forgot ‘render :layout => false if request.xhr?’
1 def render(*args) 2 args.first[:layout] = false if request.xhr? and args.first[:layout].nil? 3 super 4 end