Pavel
Pavel

Reputation: 1974

Rails: configatron

In my app I'm using configatron gem. The problem is I dont't understand clearly where I should store configatron settings. I put configatron.application_url = 'http://google.com/' in config/configatron/defaults.rb but this is not working. In the view configatron.application_url displays #<Configatron::Store:0x000001035afe70>

Upvotes: 0

Views: 612

Answers (2)

Pavel
Pavel

Reputation: 1974

I understood what the problem is. On the on the github page of Configatron developers suggest to install version 3.0.0.rc1. I downgraded Configatron to version 2.9.1 and everything worked. Thanks to all participants!

Upvotes: 0

marvelousNinja
marvelousNinja

Reputation: 1510

Looks like you've missed installation step. Run the following code in shell (from rails app directory):

rails generate configatron:install

It will generate appropriate initializer (and this initializer should load your configatron file).

For more details on Rails and configatron, feel free to consult Rails section on configatron GitHub page.

Upvotes: 1

Related Questions