Q. What resource do readers recommend for referencing regarding best
practices for form construction in Rails?
I have the following situation: location_type of Locations may have one
of five (5) possible codes. Presently I have these codes listed in a
drop-down select constructed thusly:
Basically, use a pure-ruby class to wrap the location types and let it
support an ActiveRecord like interface (mainly find and all). Then
you can do collection_select the way you would with a normal ARec
model.
Depending on which version of Rails you're working with you may also
check into PassiveRecord. It's a pretty advanced version of the same
concept. Unfortunately it has dependencies on older versions of ARec.