[Rails] Re: database.yml host read from yml

2010-06-17 Thread trybeee
YAML.load(ERB.new(File.read(path_to_file)).result) On Jun 16, 6:14 pm, Chris Habgood wrote: > Ok, in my load_config I do this: > > Site = YAML.load_file(File.join(RAILS_ROOT, 'config', 'sites.yml')) > > Something like this in the database.yml? > > host: <%= Site['name']['db'] %> > > On Wed, Jun 1

[Rails] rails 2.3 view caching in development

2009-06-23 Thread trybeee
Anybody knows hot to disable views caching in development on rails 2.3? --~--~-~--~~~---~--~~ 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@googlegroups.