Pourquoi :avis non, après le rediriger dans Rails 3

J'ai le code suivant dans mon contrôleur

  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 => 'Tv show was successfully created.') }
        format.xml  { render :xml => @tv_show, :status => :created, :location => @tv_show }
      else
        format.html { render :action => "new" }
        format.xml  { render :xml => @tv_show.errors, :status => :unprocessable_entity }
      end
    end
  end

et de la suite dans mon tv_shows/index.html.erb

<div id="notice"><%= notice %></div>

mais quand je crée une nouvelle entrée de l'avis de message ne s'affiche pas après le rediriger vers tv_shows_path. Quelqu'un à une idée pourquoi?

OriginalL'auteur maveonair | 2011-01-25