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 2
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 74
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 : How to use mephisto

Ask a Rails expert : How to use mephisto

Ask a Rails expert : will_paginate customization problem

Ask a Rails expert : BackgroundRB still wants 'development' environment...?

Ask a Rails expert : activescaffold, sql exception

Ask a Rails expert : Passing non-english chars in query string

Ask a Rails expert : Rails and 2D barcodes

Ask a Rails expert : apache giving proxy error

Ask a Rails expert : Custom Responses w/ 'extra' information...?

Ask a Rails expert : Log rotation in rails

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