Problems with attachment_fo and images update

I have installed attachment_fu and i 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].empty?

Is correct?
Thanks

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