my profile model has_many :pictures, as: :imageable and so do several
other models
my picture model belongs_to :imageable, polymorphic: true
in the pictures table fields imageable_id and imageable_type have both been
migrated
ok now i create a new_user_profile_picture how are the values for
imageable_id and imageable_type gonna be inserted into the pictures table
please? ~ thanks

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/fe58d207-ad71-4bb1-b1b1-64e7b7d30628%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedJan 23, '16 at 12:19a
activeJan 23, '16 at 12:19a
posts1
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Fugee ohu: 1 post

People

Translate

site design / logo © 2021 Grokbase