Hi I have the following:
= link_to @place.name, '#', onclick: 'get_maps(#{@location_string});'
I'm currently trying to link to a javascript call with a rails variable argument but for some reason the rails variable @location_string
isn't being passed to the javascript call with the variable in it. Currently it's being rendered as a string:
<a href="#" onclick="get_maps(#{@location_string});">3308 Kanaina Ave</a>
Any thoughts on how to solve this?