From: "Mark H. Nichols" Date: 2011-08-27T00:42:22+09:00 Subject: Re: Passing a ruby var to a js var --Apple-Mail=_81992297-342E-4E2D-BA60-D9ABA183C01F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Aug 26, 2011, at 10:32 AM, art tav wrote: > Hi I want to create a graph with js in my application > but i don't know if there's a way to pass the information > in my ruby var to the var in js that I will use for draw > the graph. >=20 > For example this var >=20 > @days =3D [1,2,3,4,5,6,7,8,9...,365] Perhaps this Stack Overflow posting may help: = http://stackoverflow.com/questions/2464966/passing-ruby-variables-to-javas= cript-function-in-rails-view --Mark --Apple-Mail=_81992297-342E-4E2D-BA60-D9ABA183C01F--