recurly/recurly-client-ruby — Issue #52: Getting "Recurly::ConfigurationError: Recurly.api_key not configured" error
Author: lpdahito
Created: 2012-01-06 02:11:44+00:00
State: open

I'm getting a configuration error when I'm providing my Recurly credentials as mentioned in the README file using rails 3.1:

# /config/initializers/recurly.rb

Recurly.api_key = ENV['RECURLY_API_KEY']
Recurly.js.private_key = ENV['RECURLY_JS_PRIVATE_KEY']

This is the error I'm getting: Recurly::ConfigurationError: Recurly.api_key not configured

When I provide a string instead of using the ENV array, everything works fine...

# /config/initializers/recurly.rb

Recurly.api_key = 'RECURLY_API_KEY'
Recurly.js.private_key = 'RECURLY_JS_PRIVATE_KEY'

Did you guys make a mistake in the README file? Or is it supposed to work this way?

Thanks
LP