Environment specific application configuration values

Tim Harding
Wed, 01 Nov 2006 11:55:04 -0000

Hi, I''m using Google Maps API in my app and that requires a specific
API key (a string) for each URI it is accessed from.

I''d like to put a specific key into each of the development.rb and
production.rb files and pick up a default "localhost:3000" key from
environment.rb and make that available somehow to print in a view.

What''s the rails way to do this type of thing?

Many thanks,

-Tim


--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---