I want to put spreedly in my new rails app.Because i am newbie can anyone help me with the spreedly gem?It says you must Configure your API key and site name for your account:
RSpreedly::Config.setup do |config|
config.api_key = "your-api-key"
config.site_name = "your-site-name"
end
Where should i put that?I need to make a initializer for this? And then i want to have a subscription system.Should i have to make a controller to handle subscriptions?Please Help!
I would put that code in config/initializers/spreedly.rb
.
Without knowing more about your application, it's hard to answer your second question, but I would say: yes.