app/controllers/results_controller.rb
# hack: let us generate and cache the content when requested over xhr, that
# we might show our users a loading spinner whilst that's happening
let us generate and cache the content when requested over xhr, that
we might show our users a loading spinner whilst that's happening
let us generate and cache the content when requested over xhr that we might show our users a loading spinner whilst that ' s happening
def result_layout
    if request.xhr?
      false
    else
      nil 
    end
  end
def result_layout if request . xhr? false else nil end end
hack: let us generate and cache the content when requested over xhr, that
we might show our users a loading spinner whilst that's happening
hack : let us generate and cache the content when requested over xhr that we might show our users a loading spinner whilst that ' s happening
# use default layout