Hi!!!!!!!!!!!! I am using rails 2.2.2 , n want to mashup google map with mysql 5.0 database, can anybody please tell me this step by step??? Thanks!!!!! --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Check out Andre Lewis'' blog for information about his Geokit plugin for Rails - http://earthcode.com/ . As for step by step instructions, it depends on the data set you''re mashing. On Mon, Feb 16, 2009 at 2:49 PM, Vrishali.... <vrish273-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi!!!!!!!!!!!! > > I am using rails 2.2.2 , n want to mashup google map with mysql 5.0 > database, > can anybody please tell me this step by step??? > > > Thanks!!!!! > > > >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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: <%@places.each 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Besides geokit, you could also investigate ym4r [*]. I personally started with it but dropped it and wrote all the javascript manually. Marko [*] http://ym4r.rubyforge.org/ On Feb 16, 2:49 pm, "Vrishali...." <vrish...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi!!!!!!!!!!!! > > I am using rails 2.2.2 , n want to mashup google map with mysql 5.0 > database, > can anybody please tell me this step by step??? > > Thanks!!!!!--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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.... <vrish273-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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: <%@places.each 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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.... <vrish273-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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: <%@places.each 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---