ym4r gmap.header key.rb error
March 5th, 2007
just a quick post for a careless problem i had the other day when using ym4r plugin on my production server. in the gmaps_api_key.yml file in your config directory, there is the production part where it is defaulted to input different url’s. in my case, I put mywebsite.com : api_key. when i did, i was getting a funky error about GMap.rb in my view template. The problem wasn’t clear until i checked the production.log file, and noticed that the problem was reported on line 28 of the ym4r/lib key.rb file. cant remember the error but it had something to do with hash key unrecognized etc…. so i said, wait second, i needs no hash keys in my yml api so let me take it out. well, guess what, it fixed the problem. just put the key right under production definition and you should be good to go. hope this helps somebody.