app/controllers/admin/blog/posts_controller.rb in comfy_blog-0.1.2 vs app/controllers/admin/blog/posts_controller.rb in comfy_blog-0.1.3

- old
+ new

@@ -21,11 +21,11 @@ @post.save! flash[:notice] = 'Blog Post created' redirect_to :action => :edit, :id => @post rescue ActiveRecord::RecordInvalid - flash[:error] = 'Failed to create Blog Post' + flash.now[:error] = 'Failed to create Blog Post' render :action => :new end def edit render @@ -35,10 +35,10 @@ @post.update_attributes!(params[:post]) flash[:notice] = 'Blog Post updated' redirect_to :action => :edit, :id => @post rescue ActiveRecord::RecordInvalid - flash[:error] = 'Failed to update Blog Post' + flash.now[:error] = 'Failed to update Blog Post' render :action => :edit end def destroy @post.destroy \ No newline at end of file