Ym4r plugin, problems?

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:inload’
/usr/local/lib/ruby/1.8/yaml.rb:144:in load_file' /usr/local/lib/ruby/1.8/yaml.rb:143:inopen’
/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:ingem_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

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

On 3/4/07, mixplate [email protected] wrote:

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


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

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 [email protected] wrote:

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


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

seems like my app is not understanding GMap.header…

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs