I am attempting to populate a collection_select object with data from
a separate table than the one the collection will be displayed.
Specifically, I would like to add a new 'project', and in one of the
fields, I would like to have a drop down list which shows different
project types. Any advice on how to do this would be greatly
appreciated.
Thanks, that is a very tricky solution. I was starting from an empty
project table, with a populated type table. I will include some dummy
projects to feed this list. Am I correct in assuming that this is the
necessary solution to this? It seems that querying the large product
table will be more expensive than simply populating off of the smaller
type table.
Thanks, that is a very tricky solution. I was starting from an empty
project table, with a populated type table. I will include some dummy
projects to feed this list. Am I correct in assuming that this is the
necessary solution to this? It seems that querying the large product
table will be more expensive than simply populating off of the smaller
type table.
(assuming you're editing the instance variable @person). Before you do
any of this, choose a name that isn't type: that's used by rails for
single table inheritance