[substruct] Making Additions to the images upload

5 views
Skip to first unread message

upisdown

unread,
Feb 22, 2011, 8:47:38 PM2/22/11
to substruct
I have been trying to add a caption. I successfully made it display in
the admin portion but I cant figure out how to save the variable.

I would have suspected:

@product.images[0] = "thing"

in the product controller would save to the caption but it does not
work.

Any suggestions? I can post more code if necessary.

Roger Pack

unread,
Feb 23, 2011, 11:01:52 PM2/23/11
to subs...@googlegroups.com

 @product.images[0].caption = "thing"
@product.images[0].save ?

Subimage

unread,
Mar 8, 2011, 8:31:55 PM3/8/11
to subs...@googlegroups.com

@product.images[0] simply references the FIRST IMAGE in the collection of images assigned to that product.

-- seth @ subimage llc
-- @subimage

--
You received this message because you are subscribed to the Google Groups "substruct" group.
To post to this group, send email to subs...@googlegroups.com.
To unsubscribe from this group, send email to substruct+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/substruct?hl=en.

Reply all
Reply to author
Forward
0 new messages