-
Notifications
You must be signed in to change notification settings - Fork 307
Documents' paths
atd edited this page Oct 26, 2011
·
1 revision
These are the paths used in social_stream-documents:
Path | Ruby code | Purpose |
---|---|---|
/documents/1 | polymorphic_path(document) | Show the HTML view of the document |
/documents/1/download | download_document_path document | Get the original file from the document |
/pictures/1 | polymorphic_path(picture) | Show the HTML view of the picture |
/documents/1/download | download_document_path picture | Get the original file from the picture |
/pictures/1.png?style=thumb0 | polymorphic_path picture, :format => picture.format, :style => 'thumb0' | Get a thumbnail from the picture |
/audios/1 | polymorphic_path(audio) | Show the HTML view of the audio |
/documents/1/download | download_document_path audio | Get the original file from the audio |
/videos/1 | polymorphic_path(video) | Show the HTML view of the video |
/documents/1/download | download_document_path video | Get the original file from the video |
/videos/1.flv | polymorphic_path(video, :format => :flv) | Get the video in FLV format |
/videos/1.webm | polymorphic_path(video, :format => :webm) | Get the video in WebM format |
/videos/1.png?style=thumb0 | polymorphic_path video, :format => :png, :style => 'thumb0' | Get a thumbnail from the video |