Displaying 1 result from an estimated 1 matches for "model_id_name".
2006 Jun 17
0
Dynamic forms containing collections
...etter if necessary!
Here is the code I''m struggling with. Particularly the "else" path is
the one not working.
<% for @name in @question.ca_question.ca_figure_input_column_names %>
<% @history_size = #fetch size %>
<% @model_name = #fetch name %>
<% @model_id_name = @model_name.classify.to_s.downcase %>
<% @field_name = @name.input_column_name %>
<% if @history_size == 1 %>
<% @id = @model_id_name + "_" + @field_name %>
<td class="questin">
<%= text_field @model_name, @field_name, { :cl...