rubyonrails-talk
August 28th, 2006, 08:55 AM
I have a simple model (Payment Gateway) which simply represents the
attributes of a number of payment gateways.
A shopping cart controller executes a find to determine which payment
gateways are available, this is simple:
@payment_gateways = PaymentGateway.find(:all, conditions => [ 'enabled
= ?', true] )
More... (http://groups.google.com/group/rubyonrails-talk/msg/2f63cb6a1ac95217)
attributes of a number of payment gateways.
A shopping cart controller executes a find to determine which payment
gateways are available, this is simple:
@payment_gateways = PaymentGateway.find(:all, conditions => [ 'enabled
= ?', true] )
More... (http://groups.google.com/group/rubyonrails-talk/msg/2f63cb6a1ac95217)