Polymorphic associations

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
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
please? ~ thanks

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs