# File lib/generators/nifty/authentication/templates/users_controller.rb, line 20 def edit @<%= user_singular_name %> = current_<%= user_singular_name %> end def update @<%= user_singular_name %> = current_<%= user_singular_name %> if @<%= user_singular_name %>.update_attributes(params[:<%= user_singular_name %>]) redirect_to root_url, :notice => "Your profile has been updated." else render :action => 'edit' end