Uploading right hand and left hand images

2 views
Skip to first unread message

Chim

unread,
Jul 22, 2010, 6:12:57 PM7/22/10
to Paperclip Plugin
Hi everyone,

I'm very new to Ruby on Rails and I learned to use paperclip for
uploading only 1 picture.

I'm trying to uploading only two pictures: right hand and left hand.

I ran two commends to generate two models:

> script/generate paperclip User right_hand
> script/generate paperclip User left_hand

And I included all the changes in the model, view, form, etc.

When I upload the images, my application is only uploading the first
image.

Why? How can I solve this?

Cheers,

Chim

Jonathan Yurek

unread,
Jul 22, 2010, 7:36:03 PM7/22/10
to papercli...@googlegroups.com
Hi, can you paste your upload form, controller, model, and view so we can take a look?

> --
> Individuals over processes. Interactions over tools.
>
> Agile Rails training from thoughtbot, the makers of Paperclip, Clearance, Shoulda, & Factory Girl:
> http://thoughtbot.com/services/training
>
> The Paperclip group:
> http://groups.google.com/group/paperclip-plugin
>
> To post to this group, send email to
> papercli...@googlegroups.com
>
> To unsubscribe from this group, send email to
> paperclip-plug...@googlegroups.com

--
Jonathan Yurek, Founder and CTO
thoughtbot, inc.
organic brains. digital solutions.

617.482.1300 x114
http://www.thoughtbot.com/

Chim

unread,
Jul 22, 2010, 8:01:34 PM7/22/10
to Paperclip Plugin
Hi Jonathan,

I realized my mistake. I didn't change the instance variable name in
the view and that's why it was showing the same image. Now it works!

Gordon Yeong

unread,
Jul 22, 2010, 8:10:08 PM7/22/10
to papercli...@googlegroups.com
Another happy user of paperclip :)

Keep up the good work, guys!

Gordon Yeong :)
Reply all
Reply to author
Forward
0 new messages