Displaying 1 result from an estimated 1 matches for "model_instance_var".
2006 Jun 12
0
Realtime form validation for forms containing collections
...12 13 15
Question 2 9 11 13
I have the following code to generate ids for my input fields. In my
view and my controller I have realtime_validation setup properly (all
other forms without collections work fine!)
<% @id = 1 %>
<% for @model_name in @model_instance_var %>
<td class="questin"><%=text_field("model_name[]", ''field_name'', :id
=> "modelname[" + @id.to_s + "]_field_name") %>
<% @id += 1 %>
<% end %>
However, this is not working! Any tips on how to get forms con...