[Rails] Storing environment.rb settings in the database...

Sean Stephens schmoboy at cox.net
Wed Mar 1 01:04:01 GMT 2006


<answer type="canned">
   Check out the Typo source.  They store settings in the DB.
   <http://www.typosphere.org/trac/browser/trunk>
   Lots of good stuff in there.
</answer

-Sean

subimage interactive wrote:
> Has anyone accomplished storing settings that would normally go in 
> environment.rb into the database?
>
> For instance, I'd like it if I could specify my ActionMailer 
> properties from a web UI admin panel
>
> ActionMailer:: Base.server_settings = {
>   :address => "mail.server.here",
>   :port => 25,
>   :domain => "somewhere.com <http://somewhere.com>",
>   :authentication => :login,
>   :user_name => " my at email.address <mailto:my at email.address>",
>   :password => "xxxxx",
> }
>
> Stuff like address, domain, user_name, password....
>
> Ideas?
>
> -- 
> seth at subimage interactive
> http://www.subimage.com/sublog/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Rails mailing list
> Rails at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>   


More information about the Rails mailing list