[act_as_attachment] upload several files/images

Hi there,

im working on a site where i want to upload some (up to 4) images with
the
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

regards

purple_haze

On 2/1/07, Ansgar B. [email protected] wrote:

regards

purple_haze

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

http://svn.techno-weenie.net/projects/mephisto/trunk/app/views/admin/assets/new.rhtml
http://svn.techno-weenie.net/projects/mephisto/trunk/app/controllers/admin/assets_controller.rb

More file fields are added with some javascript whammy jammy:

http://svn.techno-weenie.net/projects/mephisto/trunk/public/javascripts/mephisto/application.js
(look for hte Asset object).


Rick O.
http://weblog.techno-weenie.net
http://mephistoblog.com

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