Kevin Hastie wrote: I guess what I really want is something like this:
class Address< ActiveRecord::Base belongs_to :addressable, :polymorphic => true end class Business< ActiveRecord::Base has_one :address, :as => :addressable end class School < ActiveRecord::Base has_one :address, :as => :addressable end h) I don't suppose there is a way to do that with the scaffold. Is there a typical set of scaffold options that would map to this? i) Lastly, I guess I am better off avoiding polymorphism at the beginning, huh? I should just be doing a simple mapping... -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.