I have an instance method in my controller, for example
@instance_var =  [{:id=>7142,
  :t_id=>"5888",
  :date=>Mon, 10 Mar 2014,
  :name=>"test"]
From my controller, I have rendered a js to call a partial file.
In this js file, my instance variable is encoded in HTML like " is encoded to " and =>is encoded to =>. That's why I am having problems in calling a partial file with collection. Partial files are not iterating to each instance_var key-value pair.
$('#element_id').html('<%= escape_javascript(render(:partial => "my_partial", :collection => @instance_var)) %>')