Question

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>

Was it helpful?

Solution 2

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!

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top