search for: default_location_type

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

2008 Nov 05
4
select in form - best practice?
...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.select :location_type, @location.valid_location_type, :selected => @location.default_location_type, :size => 4 Would this even work? Comments?...