> > I think yaml keys need to be strings, not symbols, i.e. that would read: > > development: > bit_ly: > login: something > api_key: secret > history: 0 > > Felix
Well I followed the info provided here: http://blog.innovativethought.net/2009/01/02/making-configuration-files-with-yaml-revised/ and am able to access the data easily the error i get for this code here: URI.parse("http://api.bit.ly/shorten?version=2.0.1&longUrl=" + string +"&login=" + APP_CONFIG[:bit_ly][:login] + "&apiKey=" + APP_CONFIG[:bit_ly][:api_key] + "&history=" + APP_CONFIG[:bit_ly][:history] + "&format=xml") is NameError: uninitialized constant CreateUrl::APP_CONFIG from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/ dependencies.rb:105:in `const_missing' from /home/rails/app1/lib/mycode/create_url.rb:6:in `bit_ly_for_vehicle' -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

