Sha256: 997c5544756ebc0d56af932e4f974014d73809bedffc05126e361362ff4d5b0d
Contents?: true
Size: 653 Bytes
Versions: 3
Compression:
Stored size: 653 Bytes
Contents
class BillingsController < ApplicationController def show end def edit @account = current_account @account.cardholder_name = @account.credit_card.cardholder_name @account.billing_email = @account.customer.email @account.expiration_month = @account.credit_card.expiration_month @account.expiration_year = @account.credit_card.expiration_year end def update @account = current_account if @account.save_braintree!(params[:account]) redirect_to account_billing_path(@account), :notice => t('.update.notice', :default => "Billing information updated successfully") else render :edit end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
saucy-0.2.2 | app/controllers/billings_controller.rb |
saucy-0.2.1 | app/controllers/billings_controller.rb |
saucy-0.2.0 | app/controllers/billings_controller.rb |