Thanks resolved ..
Resolved using javascript .. Manipulating that array in javascript only
.. :)
Mukund wrote:
> Use JSON for passing array data between Ruby and Javascript. I think
> you missed the #{} inside the string above.
>
> <%= radio_button "ab", "cd", { :onclick => "abc(#
> {weight_array.to_json})"; } %>
>
> On Sep 9, 2:26�pm, Hemant Bhargava <[email protected]>
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---