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
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---