railscasts.com/episodes/270-authentication-in-rails-3-1

я есть следующий код в моем контроллере

  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

и следующее в моем tv_shows / index.html.erb

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

но когда я создаю новую запись, уведомление не появляется после перенаправления на tv_shows_path. У кого-нибудь есть идея, почему?

Ответы на вопрос(4)

Ваш ответ на вопрос