app/controllers/web/accounts_controller.rb
class Web::AccountsController < Web::ApplicationController
before_filter :authenticate_member!
def show
end
def edit
@member = current_member.becomes(MemberType)
end
def update
@member = current_member.becomes(MemberType)
if @member.update_attributes(params[:member])
flash[:success] = flash_translate(:success)
redirect_to edit_account_path
else
render :action => :edit
end
end
end