Pergunta

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>

Foi útil?

Solução 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!

Outras dicas

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top