I'm not exactly sure what might be causing the first error you mention here,
but the second one seems to be the result of the @places array not being
initialized by the controller.

On Tue, Feb 17, 2009 at 2:59 PM, Vrishali.... <[email protected]> wrote:

>
> Hello !!!
>
> Thanks for your help..but I was reffering that code only... but was
> geeting errrors as follows:
>
> 1.uninitialized constant : XMLRPC error
>
> 2. You have a nil object when you didn't expect it!
> You might have expected an instance of Array.
> The error occurred while evaluating nil.each
>
> Extracted source (around line #27):
>
> 24:             map.addControl(new GSmallMapControl());
> 25:             map.centerAndZoom(new GPoint(-122.443882, 37.769079),
> 5);
> 26:
> 27:             <%[email protected] do |place|%>
> 28:             var point = new GPoint(<%=place[:longitude]%>,<%=place
> [:latitude]%>);
> 29:             var marker = createMarker(point,'<div><%=h place
> [:description]%></div>')
> 30:             map.addOverlay(marker);
>
>
>
> so will you please tell me how to solve them???
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to