Rails config use input field to change?

Posted by Danny McClelland on Stack Overflow See other posts from Stack Overflow or by Danny McClelland
Published on 2010-05-25T22:37:13Z Indexed on 2010/05/25 22:41 UTC
Read the original article Hit count: 501

Hi Everyone,

Following on from a previous question:

I have created a config.yml file which is used to generate the content for the following:

<%= configatron.site_name %

So now, anywhere I have the above code snippet, will display the following:

development: &local
site_name: Survey Manager
site_url: localhost:3000

What I am trying to work out, is how do I have a text field somewhere in the application that will edit the site_name?

Thanks,

Danny

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about authentication