John Butler wrote in post #1032006: > Hi, > > Ive followed the railscasts to integrate paypal express and > activemerchant on rails 2.5 without any issues > http://railscasts.com/episodes/146-paypal-express-checkout. > > When using the same code in a rails 3.1 app i get the following error > below, this happens when i try to set the purchase up: > > EXPRESS_GATEWAY.setup_purchase(100, {:return_url => > "www.bbc.co.uk", :cancel_return_url => "www.bbc.co.uk"}) > > ArgumentError: wrong number of arguments (1 for 0) > from /Users/jxxxxxxxxxr/.rvm/gems/ > ree-1.8.7-2010.02@mystaffdeals/gems/ > builder-3.0.0/lib/builder/xmlbase.rb:135:in `to_xs' > from /Users/xxxxxxxx/.rvm/gems/ree-1.8.7-2010.02@mystaffdeals/ > gems/ > builder-3.0.0/lib/builder/xmlbase.rb:135:in `_escape' > from /Users/xxxxxxxx/.rvm/gems/ree-1.8.7-2010.02@mystaffdeals/
> > JB this issue due to hpricot gem with ruby 1.8.7 if you remove hpricot you can fix this issue -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

