Forum: Ruby on Rails Acts as attachment thumbnail problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
woodhen (Guest)
on 2007-07-26 02:47
(Received via mailing list)
Hi there
I am using Acts as attachment to store thumbnails in  a file system.
That part works fine :-) Along with my pic form I'm sending other
information and I want to store that information in the thumbnail row
as well as the parent image row... but I can't figure out how to do
it! The info is stored in the row that contains the original img info
with no problems, but I'd like to populate the fields in the thumbnail
row aswell (where parent_id is populated). I'm a ror newbie so the
answer is probably glaring obvious but after spending hours trying to
figure out I'm totally stuck! I'm using the standard
acts_as_attachment methods and classes but just want to pass that one
extra parameter to the db table to be stored against the thumbnail
row...
Does anyone have any ideas?
Thanks in advance....
This topic is locked and can not be replied to.