I have tried Googling as well as searching this group for
information..
I'm a bit confused.  AS wiki states that AS supports polymorphic
associations, but when attempting to add drop-down box for one, I get
errors.

I have:

class Award
  belongs_to :sponsorship, :polymorphic => :true
end

class Organization
  has_many :awards, :as => :sponsorship
end

class Individual
  has_many :awards, :as => :sponsorship
end

With  list/show actions everything is fine and dandy and I can see the
appropriate polymorphic relationships

While trying to create a select drop-down box in awards_controller
with:
config.columns[:sponsorship].form_ui = :select

I get the following error:
ActionView::TemplateError (uninitialized constant Award::Sponsorship)

I'm not sure if it's something I'm not doing right or what I'm trying
to accomplish not directly supported in AS.

Thanks in advance!



-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to