Class: ActionDispatch::Routing::Mapper
- Inherits:
-
Object
- Object
- ActionDispatch::Routing::Mapper
- Defined in:
- lib/has_attachment/routes.rb
Instance Method Summary collapse
Instance Method Details
#routes_for_documents ⇒ Object
10 11 12 13 14 15 |
# File 'lib/has_attachment/routes.rb', line 10 def routes_for_documents member do get 'documents' put 'upload_document' end end |
#routes_for_images ⇒ Object
3 4 5 6 7 8 |
# File 'lib/has_attachment/routes.rb', line 3 def routes_for_images member do get 'images' put 'upload_image' end end |