Try some thing like this invoke this kind of method when needs to delete picture
def delete_photo @object= User.find(params[:id]) @object.update_attribute(:photo, nil) @object.save redirect_to @object end On Thu, Aug 26, 2010 at 10:24 AM, Tony Mathew <li...@ruby-forum.com> wrote: > Hi All, > i created an application to upload image files using paper clip > plugin,its working successfully,alsoi had a page which l;ists all > the images uploaded by the user.also there is a delete button to delete > the image from db by entering value in the deleted_at fileld in > database not removing that complete row( not from the attachments > files(ie images folder)).but when i tried to delete an image its > getting removed from the images folder under public,can any one > suggest any method to avoid the image not getting deleted from the > public folder > > please help me > > Thanks in advance, > tony > -- > 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-t...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com<rubyonrails-talk%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- Thanks: Rajeev sharma -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.