Hi,
I'm trying to create a virtual file system in rails with folders and documents. My models look a bit like this:
class Document < ActiveRecord::Base belongs_to :folder end
class Folder < ActiveRecord::Base acts_as_tree has_many :folders end
Now, what I really want is a RESTful interface to access the data in the database. So I can do stuff like DELETE /folders/1/folders/2/folders/3/files/1, or even better: DELETE /folder-name-1/folder-name-2/folder-name-3/some-file.txt. Is there anyway to accomplish this in Rails, or are there any plugins that can help me accomplish this?