rajeevsharma86 wrote:
> 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 <[email protected]> 
> wrote:
> 
>>
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<rubyonrails-talk%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/rubyonrails-talk?hl=en.
>>
>>
> 
> 
> --
> Thanks:
> Rajeev sharma
first of all thanks  for the valiant  effort and reply, but that didnt 
works  for me,bcos i told u that when i delete like that i am losing the 
attached  file from  mu public/pictures folder.is there any possible way 
to preevent that. i think  something related  to plugin.can  any one 
knows this?
Thanks n 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to