I am working with form_tags in rails and using MongoDB for my application.
Using the form_tag i am getting params[:ids] using post method like this
["5262353ebd521b131a000010", "526b47f8bd521bd1b3000002"]
And i am saving this params[:id] as hidden_field as
<%= f.hidden_field :ids, :value => params[:ids].join(","), :multiple => true %>
But its storing in the MongoDB like this
"ids" : [
"5262353ebd521b131a000010,526b47f8bd521bd1b3000002"
],
But instead of this i need to store as,
"ids" : [
"5262353ebd521b131a000010","526b47f8bd521bd1b3000002"
],
with double quote, For single id its working fine. For multiple values its not storing as above.
Please help me in this regard.