Hi
I have the following action, that generates a flash message if a blog is created,
how can I get this message to display in my views?
thanks
# POST /blogs # POST /blogs.xml def create @blog = Blog.new(params[:blog]) respond_to do |format| if @blog.save flash[:notice] = 'Blog 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
– Posted via http://www.ruby-forum.com/.