As I've just started with rails, I want to share what worked for me. I'm using ruby 2.0 and rails 4.1, it's 2014 and amazingly, this tutorial is still valid!! with the EXCEPTION of:
<%= form_tag ... %> Tutorial code omitted the '='
In the /config/initializers/load_config.rb:
APP_CONFIG = YAML.load_file("#{Rails.root}/config/config.yml")[Rails.env]
Use APP_CONFIG['paypal_secret']. Not APP_CONFIG[:paypal_secret]
Also, we're not able to test the paypal return parameters unless we put in on a server as paypal can't send back to localhost:3000
dnewkerk, you are a champ. Thanks for you all your effort :)))))
As I've just started with rails, I want to share what worked for me. I'm using ruby 2.0 and rails 4.1, it's 2014 and amazingly, this tutorial is still valid!! with the EXCEPTION of:
<%= form_tag ... %> Tutorial code omitted the '='
In the /config/initializers/load_config.rb:
APP_CONFIG = YAML.load_file("#{Rails.root}/config/config.yml")[Rails.env]
Use APP_CONFIG['paypal_secret']. Not APP_CONFIG[:paypal_secret]
Also, we're not able to test the paypal return parameters unless we put in on a server as paypal can't send back to localhost:3000
Hope this helps!