On Miércoles, 24 de Agosto de 2011 19:06:18 Mike escribió: > I'm not sure the best way to do this. It doesn't appear as though the > Polymorphic association is being detected by Active Scaffold? When I add > the model association to ActiveScaffold it gives a Template::Error (Could > not find ImagesController or ImageController) > > For Example: > > class Image < ActiveRecord::Base > belongs_to :imageable, :polymorphic => true > has_attached_file :image > end > > class User < ActiveRecord::Base > has_many :images, :as => :imageable > end > > I don't know if the best way would be to set these up as some type of > nested or embedded scaffold instead? > I'm not sure what step I might be missing here, but any help would be > appreciated. > Thanks! > Mike
Have you created ImagesController and configure it to use with ActiveScaffold? ActiveScaffold needs a controller for each associated model, to get subform columns info. -- Sergio Cambra .:: entreCables S.L. ::. Mariana Pineda 23, 50.018 Zaragoza T) 902 021 404 F) 976 52 98 07 E) [email protected] -- 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.
