Sorry for bad English. Why we have so restriction in ActiveRecord?
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.9/test/cases/
nested_attributes_test.rb
def
test_should_raise_argument_error_if_trying_to_build_polymorphic_belongs_to
  assert_raise_with_message ArgumentError, "Cannot build association
looter. Are you trying to build a polymorphic one-to-one association?"
do
    Treasure.new(:name => ''pearl'', :looter_attributes =>
{:catchphrase
=> "Arrr"})
  end
end
-- 
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.