Browse the Ruby on Rails Community.

You are here: Forums Ask a Rails expert FILE EDIT/DELETE...

Replytotopic

FILE EDIT/DELETE

Posted in Forums : Ask a Rails expert

 
Profile

Authority 25
Posting Rating 11
Sign in to rate this post

HI im mohd anas..
i used fileutils lib to save the file to public folder of my app…..
Now i want to edit/delete the file from public folder using fileutils…

MOHD ANAS
 
20064666954644d813e6326

Authority 0
Posting Rating 80
Sign in to rate this post

http://www.ruby-doc.org/core/classes/FileUtils.html

FileUtils.rm(list, options)
or
FileUtils.remove_file(path, force = false)

Replytotopic

Other Recent Topics

Ask a Rails expert : Tracking down an issue

Ask a Rails expert : Thread Vs Transaction

Ask a Rails expert : implementing whitelist plugin

Ask a Rails expert : Validation helper

Ask a Rails expert : FILE EDIT/DELETE

Ask a Rails expert : decrypting the password

Ask a Rails expert : Static Objects in Rails

Ask a Rails expert : Newbie - Rake Cant Execute Test

Ask a Rails expert : Call Web service

Ask a Rails expert : RMagick issues

Formatting Help
  • *bold*       _italics_      
    bq. (quotes)
  • "DSC":http://www.dsc.net
  • * or # (lists)
or cancel