Forum: Ruby on Rails Restful S3 Explorer

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Manuel (Guest)
on 2009-02-18 10:39
(Received via mailing list)
Hi everyone,
I'm working on a S3 Bucket Explorer.
My problem is the identifier of a S3 Object, it's a key like this:
"Butterfly.wmv" or even "something/else.pdf"
Now i try to make this restful, but the key confuses the routing (or
just me)

map.resources :s3files
map.connect ':controller/:id', :id => /.*/

This isn't working as soon as i have a dot or slash in the key.
Is it possible to get everything behind the controller as the id?

Something like this:

DELETE         s3files/Butterfly.wmf
GET               s3files/something/else.pdf
This topic is locked and can not be replied to.