I have been working on incorporating links into a google map feature on my website. Each link is supposed to connect to a different venue within the site. To achieve this, I have been using JavaScript and following tutorials provided by Google API.
The variable 'place' is dynamically generated by JavaScript, and I want it to represent the name of the link. However, when I use the following notation:
contentString = '<%=link_to '+place.name+'%>';
it displays the result as: +place.name+ (which is underlined as it is recognized as a link).
I know that there must be a simple mistake in my approach, but I am unable to identify it. Any assistance or guidance would be highly appreciated.