How to call javascript function from js.erb

82 views
Skip to first unread message

aswani521

unread,
Mar 9, 2012, 2:08:41 AM3/9/12
to rubyonra...@googlegroups.com
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. 
Reply all
Reply to author
Forward
0 new messages