On Jan 15, 2009, at 5:54 AM, DAZ wrote:
>
> What is the best way to allow site-wide setting to be changed?
>
> For example, an admin user could be able to set the site theme, the
> number of images shown on the landing page, the title of the app,
> greeting given etc.
>
> Solutions I can think of are:
> Database Solution
> ----------------------------
> A Site model, with only one instance
>
> File Based Solution
> --------------------------------
> Configuration file(s) that can be edited by admins from within the
> browser
>
>
> What do people think or do in their sites?
I use http://agilewebdevelopment.com/plugins/application_config for
things that won''t change frequently... api keys, etc...
Other times I''ve created a Preference model with key/value attributes
and they can edit that...
-philip
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---