Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news.

Settings – a configuration hash plugin for Rails

By Peter Cooper / June 4, 2006

Settings is a new plugin for Rails that lets you have a basic hash of 'settings' or configurations for your application without having everything hardcoded. Example:

Settings.admin_password = 'supersecret'
Settings.date_format    = '%m %d, %Y'
Settings.cocktails      = ['Martini', 'Screwdriver', 'White Russian']
Settings.foo            = 123

Comments

  1. Chad Humphries says:

    I've been using this for a while in an application I'm developing. It does exactly what it's supposed to and no more. Just perfect.

Other Posts to Enjoy

Twitter Mentions