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
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.
2 matches
Mail list logo