Philip H. wrote:
could always create a controller/view to generate JS files though and
then treat them similarly.
Or consider setting some initial JS objects or JSON strings that your
JS methods can look at when doing their thing.
Alternatively, assign the ruby code to a JS variable in the appropriate
view/page, then you can use this variable freely in the
Just make sure it is assigned before it will be used