Displaying 1 result from an estimated 1 matches for "type_typecategory".
2006 Feb 28
6
Problem with select and each_with_index
...', ''typecategory'', Typecategory.each_with_index {|item,
index| [item, index]} )%>
Where typecategory is defined (in environment.rb) as [ ''A'', ''B'', ''C'',
''D'' ].
What I get out is:
<select id="type_typecategory" name="type[typecategory]"><option
value="A">A</option>
<option value="B">B</option>
<option value="C">C</option>
<option value="D">D</option></select>
Please point out to an idiot noob...