On Saturday, August 4, 2012 8:09:16 PM UTC+2, Farski wrote: > > I'm having a hard time thinking of use cases for this outside of zip or > other archive/compression formats. In the case of user/1.xml.zip, likely > you'd want an existing users_controller#show that returns xml to continue > to operate as it currently does, but you'd want the result to be zipped. If > there aren't lot (any?) of other situations where stack formatting is used, > perhaps this would be better handled outside the scope of rails; let it > keep doing what it's doing and maybe check the request URL for compression > in rack on the way in and do the compression on the way out. If there are > more general uses of this, it's still unlikely that you'd want a single > controller action to handle both creating the xml and zipping it if > necessary. >
Maybe "csv.zip" or "pdf.zip" make better sense. I can of course define formats "csv_zip" and "pdf_zip" and use them, but i would prefer "csv.zip" and "pdf.zip". - Alexey. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/nvcKZqSESFAJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
