Displaying 1 result from an estimated 1 matches for "valid_location_type".
2008 Nov 05
4
select in form - best practice?
...'],
[''OTHR - Other'', ''OTHR''],
],
:selected => ''MAIN'',
:size => 4
-%>
</p>
Should this instead be constructed so that the model, Locations, has
these virtual attributes:
valid_location_type[]=
[
[''MAIN - Main Location'',''MAIN''],
[''POST - Postal Delivery'', ''POST''],
...
]
default_location_type = ''MAIN''
and then the view could have this instead:
<%= f...