From ef1443bb33e66ea1bfc2b012f299cd62f8f173f1 Mon Sep 17 00:00:00 2001 From: Erik Michaels-Ober Date: Wed, 14 Sep 2011 18:35:22 -0700 Subject: [PATCH] Add flash notice for edit form --- app/controllers/users_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 67788d8..95190af 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -6,6 +6,7 @@ class UsersController < Devise::RegistrationsController def update if resource.update_with_password(params[resource_name]) sign_in(resource_name, resource, :bypass => true) + flash[:notice] = "Profile updated!" redirect_to(:controller => "info_window", :action => "index", :hydrant_id => params[:hydrant_id]) else clean_up_passwords(resource)