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]
end
I need to render a select list that contains all the possible attacher
types and looks like this:
<select name="attacher[id]">
<option value="Typology">Typologies</option>
<option value="Area">Areas</option>
</select>
Is it possible? If so, how''s the neatest way to do it?
Thanks again.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---