app/controllers/accounts_controller.rb
def send_by_email
    AccountMailer.send_by_email(@account, APP_CONFIG['password_to']).deliver
    respond_to do |format|
      format.html { redirect_to(@account,
          :notice => "Successfully sent email to #{APP_CONFIG['password_to']}") }
    end
  end
#
# Send account details by email
# GET /accounts/1/send
Send account details by email
GET /accounts/1/send
Send account details by email GET / accounts / 1 / send
def send_by_email
    AccountMailer.send_by_email(@account, APP_CONFIG['password_to']).deliver
    respond_to do |format|
      format.html { redirect_to(@account,
          :notice => "Successfully sent email to #{APP_CONFIG['password_to']}") }
    end
  end
def send_by_email AccountMailer . send_by_email ( @account , APP_CONFIG [ 'password_to' ] ) . deliver respond_to do | format | format . html { redirect_to ( @account , :notice => "Successfully sent email to #{APP_CONFIG['password_to']}" ) } end end
Send account details by email
GET /accounts/1/send
Send account details by email GET / accounts / 1 / send