Report abuse


			
 
  def index
    render :layout => false if flash[:xhr] == 'moo'
  end

  def some_action
    flash[:xhr] = 'moo' if request.headers['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest'
    redirect_to :action => 'index'
  end