Displaying 1 result from an estimated 1 matches for "inthese".
Did you mean:
inthere
2008 Mar 21
0
Problems with attachment_fo and images update
...have use this tutorial for change
the path_prefix:
http://the.railsi.st/2007/8/21/how-to-customize-attachment_fu-file-names
the path of images+thumbnail are:
/images/cores/fullsize/
/images/cores/thumb/
/images/cores/thumb_big/
when i create a new attachment object it works, the images are insert
inthese directory.
But when i edit a object (changing also the image), new thumbnail images
are insert not correctly.
Are insered in fullsize directory with a different name.
Why?
I update the attachment in my controller with:
@user.photo=Photo.new(params[:user][:photo]) unless
params[:user][:photo].emp...