How do I pass the ruby arrays to Js func and access it(from JS func)from
a view page.. In my view page  I have defined an array as

    <% asset.push({'url' => image['url'],
  'height' => height_ser,
  'width'=> width_ser
   }) %>

And I have passed this array as

    <%= submit_tag "
Continue",:Onclick=>"insert_slide(#{asset['height'].to_json},
#{asset['width'].to_json)" %>

But in the JS function(defined as function insert_slide(height, width))
of insert_slide I am not able to access this array of height and width

It is showing an error as asset_org is not defined... Any inputs on
this??

-- 
Posted via http://www.ruby-forum.com/.