Forum: Ruby on Rails attachment_fu multiple uploads has_one relationship

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
jko170 (Guest)
on 2007-05-03 22:41
(Received via mailing list)
I've got a user model that has one photo.
I have a photo model that belongs_to user

I followed this tutorial to have an arbitrary number of users created:

I then followed this tutorial to have multiple file uploads with

My parameters look correct. The photos hash has a unique key for each
photo. The users hash has a unique key for each user. What I am trying
to do is link/attach each photo to each user based on the two having
the same key. I can iterate through the photos and users hash and get
the keys but I don't know how to compare the two.
Anyone care to give me an idea on how I can do this with Ruby's magic?
jko170 (Guest)
on 2007-05-03 23:42
(Received via mailing list)
scratch this post -- I think this shows that I have an app design
issue, not code issue.
This topic is locked and can not be replied to.