OSDN Git Service

flash
[elecoma/elecoma.git] / app / controllers / admin / shops_controller.rb
index 452097d..cf7dfbf 100644 (file)
@@ -189,9 +189,9 @@ class Admin::ShopsController < Admin::BaseController
     @social = @shop.social  || Social.new
     @social.attributes = params[:social]
     if @social.save
-      flash.now[:notice] = "データを保存しました"
+      flash[:notice] = "データを保存しました"
     else
-      flash.now[:error] = "データの保存に失敗しました"
+      flash[:error] = "データの保存に失敗しました"
     end
     redirect_to :action => "social_index"