Forum: Ruby on Rails how to get acts_as_versioned able to delete only selected ve

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7300fa34312787a968a85780e5aa6195?d=identicon&s=25 Preeda Payattakool (oz4899)
on 2009-04-27 18:46
Hello everyone

i'm working on uploading file by using attachment_fu and
acts_as_versioned


so the problem is i can't delete only selected version


for example ;

i have file a.txt  and this file have 5 version each version is viewable
( that mean you can view version 1 , version 2 , version 3
.............. )

a.txt ( version1 )
a.txt ( version2)
a.txt ( version3 )
a.txt ( version 4)
a.txt (version 5 )  <<<<< latest version

and i would like to delete ONLY version 3  so the result after delete
should be like this

a.txt ( version 1)
a.txt ( version 2 )
a.txt ( version 4)
a.txt (version 5 )  <<<<< latest version

and if user choose delete version 5 , the result after delete should be
like this

a.txt  (version 1)
a.txt ( version 2)
a.txt (version 4)  <<<<<<<<< latest version

any suggestion ?

ps. sorry about my english
This topic is locked and can not be replied to.