Displaying 3 results from an estimated 3 matches for "payment_id".
Did you mean:
parent_id
2011 Apr 29
2
change patial with change of the item in a select_tag
hi,
i would like to change a partial in my view with the change of the
item in a select_tag:
in the view:
<%= observe_field("payment_id", :url => {:controller
=>''user_admins'' ,:action => ''rend_part''},:on => ''change'', :frequency
=> 0.1) %>
<%= select( "payment", "id", { "Visa" => "1", "Mastercard" =>...
2009 Feb 26
1
Problem w/ActionWebService and Inheritance in Service Params
...CreditCard or
PayPal. Here''s some sample code that illustrates what I''m talking about
more concretely:
class PaymentsApi < ActionWebService::API::Base
api_method(
:create_payment,
:expects => [
{ :payment_method => PaymentMethod }
],
:returns => [ :payment_id => :string ]
)
end
class PaymentMethod < ActionWebService::Struct
# ...
end
class CreditCard < PaymentMethod
# ...
end
class PayPal < PaymentMethod
# ...
end
I see in the request XML that it knows that the payment_method is really
a CreditCard or Invoice (note the xsi:type).
&l...
2006 Dec 08
19
HABTM join table quirk
I''ve been bringing up a good basica framework for applications at work.
To give decent security I''ve been implementing the Rails Recipie for
Authorization of function calls modeled on the book''s implementation.
(Changes for our environment were added..but are minor.)
Since I initially let Rails create the join table between two data
tables with a HABTM relationship....I