RailsCasts Pro episodes are now free!

Learn more or hide this

bilton's Profile

GitHub User: bilton

Comments by

Avatar

dnewkerk, you are a champ. Thanks for you all your effort :)))))

Avatar

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:

  1. <%= form_tag ... %> Tutorial code omitted the '='

  2. In the /config/initializers/load_config.rb:
    APP_CONFIG = YAML.load_file("#{Rails.root}/config/config.yml")[Rails.env]

  3. 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!