# Ym4r plugin, problems?

**URL:** <https://www.ruby-forum.com/t/ym4r-plugin-problems/87631>\
**Category:** Rails\
**Created:** [March 4, 2007, 5:03pm UTC](https://www.ruby-forum.com/t/ym4r-plugin-problems/87631 "2007-03-04T17:03:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mixplate](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a6a055/32.png) [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Post date:** [March 4, 2007, 5:03pm UTC](https://www.ruby-forum.com/t/ym4r-plugin-problems/87631/1 "2007-03-04T17:03:02Z")

</div>

Hi, after installing the plugin and running a rake production command, i  
receive

the following…

/usr/local/lib/ruby/1.8/yaml.rb:133:in `load' /usr/local/lib/ruby/1.8/yaml.rb:133:in`load’  
/usr/local/lib/ruby/1.8/yaml.rb:144:in `load_file' /usr/local/lib/ruby/1.8/yaml.rb:143:in`open’  
/usr/local/lib/ruby/1.8/yaml.rb:143:in `load_file' ../vendor/plugins/ym4r_gm/lib/gm_plugin/key.rb:15 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in`gem\_original\_require’  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`require’

…

this is the line of code in the key.rb file where it is failing i  
think…

GMAPS\_API\_KEY = YAML.load\_file(RAILS\_ROOT +  
‘/config/gmaps\_api\_key.yml’)[ENV[‘RAILS\_ENV’]]

does this sound like a problem with what rails version i am using?

thanks

---

<div class="post-metadata">

**Author:** ![mixplate](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a6a055/32.png) [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Post date:** [March 4, 2007, 7:18pm UTC](https://www.ruby-forum.com/t/ym4r-plugin-problems/87631/2 "2007-03-04T19:18:31Z")

</div>

Did your url change? You need a new API key for each url that you use.  
-Larry

On 3/4/07, mixplate [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> /usr/local/lib/ruby/1.8/yaml.rb:143:in `open’  
> think…  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–  
Best Regards,  
-Larry  
“Work, work, work…there is no satisfactory alternative.”  
— E.Taft Benson

---

<div class="post-metadata">

**Author:** ![mixplate](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a6a055/32.png) [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Post date:** [March 4, 2007, 8:14pm UTC](https://www.ruby-forum.com/t/ym4r-plugin-problems/87631/3 "2007-03-04T20:14:29Z")

</div>

well typically when my key changed, i would just get a javascript error  
saying google map api key not valid for this url, try again…the  
problem i am having is breaking the whole rails app.

even when i do a fresh install, i get the error.

Larry K. wrote:

> Did your url change? You need a new API key for each url that you use.  
> -Larry
> 
> On 3/4/07, mixplate [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > /usr/local/lib/ruby/1.8/yaml.rb:143:in `open’  
> > think…  
> > Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> > 
> > >
> 
> –  
> Best Regards,  
> -Larry  
> “Work, work, work…there is no satisfactory alternative.”  
> — E.Taft Benson

---

<div class="post-metadata">

**Author:** ![mixplate](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a6a055/32.png) [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Post date:** [March 4, 2007, 9:04pm UTC](https://www.ruby-forum.com/t/ym4r-plugin-problems/87631/4 "2007-03-04T21:04:30Z")

</div>

seems like my app is not understanding GMap.header…

---

<div class="post-metadata">

**Author:** ![mixplate](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a6a055/32.png) [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Post date:** [March 5, 2007, 12:36am UTC](https://www.ruby-forum.com/t/ym4r-plugin-problems/87631/5 "2007-03-05T00:36:39Z")

</div>

found the problem…i had a url parameter in the google map api yml  
when i shouldnt have.
