subimage interactive
2006-Mar-01 00:41 UTC
[Rails] Storing environment.rb settings in the database...
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", :authentication => :login, :user_name => "my@email.address", :password => "xxxxx", } Stuff like address, domain, user_name, password.... Ideas? -- seth at subimage interactive http://www.subimage.com/sublog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060301/a56a8eff/attachment-0001.html
Sean Stephens
2006-Mar-01 01:04 UTC
[Rails] Storing environment.rb settings in the database...
<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@email.address <mailto:my@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@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >