Forum: Ruby on Rails [act_as_attachment] upload several files/images

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.
Ansgar B. (Guest)
on 2007-02-01 19:15
(Received via mailing list)
Hi there,

im working on a site where i want to upload some (up to 4) images with
rails plugin "act_as_attachment". Could anybody give me a hint, how to
design the view and the controller to process more then one upload field
with act_as_attachment?

thanks in advance


Rick O. (Guest)
on 2007-02-01 20:37
(Received via mailing list)
On 2/1/07, Ansgar B. <removed_email_address@domain.invalid> wrote:
> regards
> purple_haze

It's not the greatest code, but checkout how Mephisto handles it:

More file fields are added with some javascript whammy jammy:
(look for hte Asset object).

Rick O.
This topic is locked and can not be replied to.