I am new to ruby this might be something which is obvious. I am trying to call my addmarker() function which can add a marker to my Google map. In my js.erb i tried to include the function call within the <script> tags, but the function addmarker() is not being called. Has anyone faced a similar problem ? I am trying to avoid using a gem for my case. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/fuO3LbmVJYwJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.