Displaying 1 result from an estimated 1 matches for "dowhateveryouneedtoparseit".
2009 Feb 12
4
Easy RoR <-> Javascript syntax question
Hi there,
a simple n00b question:
I have that Javascript snippet on my page (see below; taken from jquery,
actually).
I want to pass it the "@cities" array from the controller. But what''s
the correct syntax, here?
See the 3rd line:
========================================
<script>
$(document).ready(function(){
var data = @cities; <---- that''s