From 589de938cf6a1dd053f70afa52c0e541374f3e49 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Thu, 21 Jun 2012 18:11:02 +0100 Subject: [PATCH] Improved notice messages --- app/controllers/feeds_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/feeds_controller.rb b/app/controllers/feeds_controller.rb index 874b3cb..1cbbd8a 100644 --- a/app/controllers/feeds_controller.rb +++ b/app/controllers/feeds_controller.rb @@ -45,7 +45,7 @@ class FeedsController < ApplicationController respond_to do |format| if @feed.save - format.html { redirect_to '/', notice: 'Feed was successfully created.' } + format.html { redirect_to '/', notice: 'Feed added OK' } format.json { render json: @feed, status: :created, location: @feed } else format.html { render action: "new" } @@ -61,7 +61,7 @@ class FeedsController < ApplicationController respond_to do |format| if @feed.update_attributes(params[:feed]) - format.html { redirect_to @feed, notice: 'Feed was successfully updated.' } + format.html { redirect_to @feed, notice: 'Feed updated OK' } format.json { head :no_content } else format.html { render action: "edit" }