Sha256: 63e8c4c82d12ab38ac84d83b3abeb0b5a77f6e36847769ad88b55ac58d1fe85b
Contents?: true
Size: 441 Bytes
Versions: 1
Compression:
Stored size: 441 Bytes
Contents
module Jackpot class PaymentsController < ApplicationController before_filter :authenticate_user! def create @customer = Jackpot::Customer.find params[:customer_id] respond_to do |format| if @customer.pay_subscription format.html { redirect_to(payments_url, notice: "Payment recorded successfully")} end end end def index @payments = Payment.all end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jackpot-0.0.3 | app/controllers/jackpot/payments_controller.rb |