Sent from the road
On Wednesday, October 31, 2012 at 6:37 AM, Christopher COCCHI-PERRIER wrote:
> Currently I see many applications using custom accept headers for their API versionning such as application/vnd.foo-v1+json or application/vnd.bar-3+xml. But when Rails receive such an accept header, it cannot convert it to a standart Mime::Type and thus causing problems errors when using `respond_to` with :json or :xml.
> And Mime::Type#register only allows to register string not regexp, so it is not convenient when coming to versionning.
> Shouldn't Rails coerce these new almost standart headers to application/json and applicatioin/xml (for previous example) ?
> If you think this should goes into Rails, I'd be happy to provide a pull request.
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.