you could code it yourself, i think there is a railscast that shows an
easy way to do it. or you could use one of the many plugins or gems
out there. i just recently used
http://github.com/binarylogic/settingslogic/tree/master


On Jan 9, 9:32 am, Peter Hickman <pete...@ntlworld.com> wrote:
> I have a web site that accesses Solr (a Lucene based search engine  
> accessed via REST). I would like the configuration to be handled in  
> the same was as database.yml. I envision a file called solr.yml that  
> looks something like this in the config directory:
>
> development:
>    url:http://dev.solr.example.com/search
>
> test:
>    url:http://test.solr.example.com/search
>
> production:
>    url:http://production.solr.example.com/search
>
> If I was to write this file how would I access it?
>
> Any pointers would be appreciated as it would aid testing and I have a  
> couple of other projects that could use this technique.
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
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.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to