title: Why is :notice not showing after redirect in Rails 3
body: <p>I have the following code in my controller</p>
  
  <pre><code>  def create
      @tv_show = TvShow.new(params[:tv_show])
  
      respond_to do |format|
        if @tv_show.save
          format.html { redirect_to(tv_shows_path, :notice =&gt; 'Tv show was successfully created.') }
          format.xml  { render :xml =&gt; @tv_show, :status =&gt; :created, :location =&gt; @tv_show }
        else
          format.html { render :action =&gt; "new" }
          format.xml  { render :xml =&gt; @tv_show.errors, :status =&gt; :unprocessable_entity }
        end
      end
    end
  </code></pre>
  
  <p>and the following  in my tv_shows/index.html.erb </p>
  
  <pre><code>&lt;div id="notice"&gt;&lt;%= notice %&gt;&lt;/div&gt;
  </code></pre>
  
  <p>but when I create a new entry the notice message does not appear after the redirect to tv_shows_path. Have anyone an idea why?</p>