What shoud flash[:alert] be in edge rails?

Hi

I haveJust attmpting to start using edge rails for the first time.

Couldnt find the answer to this anywhere, below is a small peiece of
code I have been using, but flash[:notice] does not seem to work anymore

What should i be using instead?

%if flash[:notice] || flash[:alert] -%>


<%= flash[:notice] || flash[:alert] %>


<% end -%>

cheers

flash is just a hash. Rails doesn’t do anything specific if there’s a
key
named :notice. There’s something else wrong with your code. Can we see
the
related controller?

Jason

Jason R. wrote:

flash is just a hash. Rails doesn’t do anything specific if there’s a
key
named :notice. There’s something else wrong with your code. Can we see
the
related controller?

Jason

This is the code from one of the broken controllers

# POST /blogs
# POST /blogs.xml
def create
    @blog = Blog.new(params[:blog])

    respond_to do |format|
        if @blog.save

            flash[:notice] = 'Blog post was successfully created.'

            format.html { redirect_to blog_url(@blog) }
            format.xml  { head :created, :location => 

blog_url(@blog) }
else
format.html { render :action => “new” }
format.xml { render :xml => @blog.errors.to_xml }
end
end
end