search for: tempfilerec

Displaying 2 results from an estimated 2 matches for "tempfilerec".

2006 Jun 09
8
[how can i delete a file system..please help]
Hi, I''m trying to delete a file system (<xml_26548975.xml>) File.delete("xml_26548975.xml") But I get this error: "Permission denied - ./script/../config/../uploads/xml_26548975.xml". Why? -- Cheers, ioana k&a http://boulangerie.wordpress.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Sep 09
2
Server-side session management for short session expirations?
...ogs out of my app, I delete all the data they''ve entered/that''s been created during their session. The data includes files, database records, and then their session data. The controller code that gets executed when they log out is: def cleanup emrec = find_emrec files = Tempfilerec.find(:all, :conditions => ["emrec_id = ?", emrec.id]) files.each {|file| #FileUtils.rm "#{RAILS_ROOT}/public/#{file.filename}" for production FileUtils.rm "public/#{file.filename}" } emrec.destroy reset_session end I need to e...