Skip to content

Instantly share code, notes, and snippets.

@charly
Created August 19, 2009 06:39
Show Gist options
  • Save charly/170210 to your computer and use it in GitHub Desktop.
Save charly/170210 to your computer and use it in GitHub Desktop.
class PaymentsController < ApplicationController
before_filter :find_payment
layout "secure"
def show(); end
private
def find_payment
@payment = current_order.payment
end
end
#some view
= link_to "payment", current_order.payment #=> "/payment/:id"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment