Steve Glaz
2008-May-11 14:05 UTC
Switching Google Maps API Key from Deplyoment to Production
Hi there everyone, I have a rails app that used Google Maps in some of the views. In order to use it I have to include the following code at the top of my view: <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAIMKpaY7H31fBaN42JFh17RTJQa0g3IQ9GZqIMmInSLzwtGDKaBR7f3BOyzEp9wqLchJrd7-MYS2n0Q" type="text/javascript"></script> However, I have two separate keys - one for production and one for development. What is the best way to organize them so that when I use Capistrano to upload my app and run it in production mode the correct API key gets loaded? Thanks, Stephen -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---