On 04/08/2012, at 15:54, Alexey <[email protected]> wrote: > I see no better way to name this format than 'csv.zip' (with Content-Type > 'application/zip').
But then you'd have 'csv.zip', 'xml.zip', etc be application/zip. If you want to support both in a controller action, what happens when someone requests /users with Accept application/zip? Which one wins? The .format notation is just a workaround for things that can't add/change the Accept header to the request (like HTML links), but it's just a workaround. Cheers, -foca > -- > 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/-/l1IhoVdtF4wJ. > 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. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. 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.
