Class: Jackpot::ReceiptsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/jackpot/receipts_controller.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) public_show

Shows a receipt using a public access token to display a receipt without authentication



12
13
14
15
# File 'app/controllers/jackpot/receipts_controller.rb', line 12

def public_show
  @payment = Payment.public_fetch params[:payment_id], :public_token => params[:public_token]
  render :pdf => 'receipt', :template => 'jackpot/receipts/show.pdf.erb'
end

- (Object) show



6
7
8
9
# File 'app/controllers/jackpot/receipts_controller.rb', line 6

def show
  @payment = Payment.find params[:payment_id]
  render :pdf => 'receipt' 
end