Sha256: f3c84baf0c32e9af896b3203d7b46a835a12e672a03d5fd471b5ba2cd9613821
Contents?: true
Size: 663 Bytes
Versions: 27
Compression:
Stored size: 663 Bytes
Contents
module ErpApp module Shared class ProfileManagementController < ErpApp::ApplicationController before_filter :require_login def update_email current_user.email = params[:email] if current_user.save message = "<ul>" current_user.errors.collect do |e, m| message << "<li>#{e} #{m}</li>" end message << "</ul>" render :json => {:success => true, :message => message} else render :json => {:success => true, :message => 'Error updating email'} end end end #ProfileManagementController end #Desktop end #ErpApp
Version data entries
27 entries across 27 versions & 1 rubygems