Configuration management generator.
Generates a YAML based Configuration system. Allows you to edit Configurations and Settings and save them in a database as well as a YAML configuration file allowing you to load in your environment.rb or Controller cutting down on DB reads.
NAME
configuration - creates a functional YAML configuration system for
your Rails app
SYNOPSIS
configuration [Controller name]
Good names are Configuration, Settings, or Foo (j/k)
DESCRIPTION
This generator creates a general purpose configuration system.
Included:
- a Controller with ability to edit Configurations, create new
setting types, and test written YAML files
- Configuration, Configurationsettings, Configurationtypes, models
that allow for a good deal of flexibility
- a configuration.sql with the minimal sql required to get the
models to work.
EXAMPLE
configuration Settings
This will generate an Settings controller with delete,
delete_setting, edit, list, index, new, new_setting_bool,
new_setting_text, new_setting_multiple_choice,
new_setting_multiple_select, new_type_multiple_choice,
new_type_multiple_select, update_settings
The model is always called Configuration, Configurationsetting, and
Configurationtype
== Welcome to 53Configuration This is the 53Configuration Controller. It allows for the management of Configuration Settings on a Rails website by storing them in a database and writing these settings to YAML config files for loading in the environment.rb or in specific <span class="newWikiWord">ActiveControllers<a href="http://wiki.rubyonrails.com/rails/pages/ActiveControllers">?</a></span>. The Configuration Settings can be a couple of types off the bat, Bool(yes/no), Multiple Choice, Multiple Select or Text. There is a SQL file for <a href="http://wiki.rubyonrails.com/rails/pages/MySQL" class="existingWikiWord">MySQL</a> in the db/ directory that will set them up for you. You will need to edit the config/database.yml after importing the SQL file to match your settings. The HTML is horrible and is really just what was posted on the mailing list: Here's the original : <a href="http://www.standards-schmandards.com/exhibits/rails/">http://www.standards-schmandards.com/exhibits/rails/</a> Thanks. I am not a design guru and wanted more function in this release than design *NOTE : Currently I am having trouble creating full tests on my Windows box. As such, after spening too much time trying to address the problem I have abandoned writing tests for all methods until I have time to get this set up on a linux server. Hopefully this will help with the problems.
Since this page doesn’t include a link to the aforementioned generator, the closest match I found was this: http://rubyforge.org/projects/rconfig/. Not the best thing from an engineering perspective (since it uses multiple columns in a single row for all the configuration options, but it’s a good start. — fotos