Created
August 19, 2009 06:39
-
-
Save charly/170210 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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