Add flash notice for edit form

This commit is contained in:
Erik Michaels-Ober 2011-09-14 18:35:22 -07:00
parent 690fadeb9c
commit ef1443bb33
1 changed files with 1 additions and 0 deletions

View File

@ -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)