search for: subject_family_members

Displaying 1 result from an estimated 1 matches for "subject_family_members".

2008 Jan 18
1
Values broken converting from rails into javascript
...od that returns an array of arrays, where each array is of the form [name, number] I then iterate over the arrays, and substitute in the values out of the array - <%options_for_select(SubjectFamilyMember.options_for_select(["3"])).each_with_index do |option_tag, i| -%> $("subject_family_members[]").options[<%= i+1.to_i %>]=new Option(''<%= option_tag[0] %>'', <%= option_tag[1].to_i %>, false, false); <%end %> When i run this in the console (escaping the quotes), it seems to produce the right results - $("subject_family_members[]")....