Hi there again,
I posted something similar before and didn't get any answer, probably
because I failed to put together a coherent question. I'll try to make
it simple this time.
Having an association like this one:
class Attachment < ActiveRecord::Base
belongs_to :attachable, :polymorphic => true
belongs_to :attacher, :polymorphic => true
acts_as_double_polymorphic_join :attachables => [:photos, :videos],
:attachers => [:typologies, :areas]
I need to render a select list that contains all the possible attacher
types and looks like this:
Is it possible? If so, how's the neatest way to do it?