S w mill wxswcsswxe ce cxssxsqseaxqxxqs six desssssqssssssx. W ce cedsdc cx dA 

-- 
Richard Schneeman
http://heroku.com
@schneems

Sent from the road


On Wednesday, October 31, 2012 at 6:37 AM, Christopher COCCHI-PERRIER wrote:

> Hi,
> 
> 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.
> 
> Cheers, 
> 
> -- 
> 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/-/CubR52aCYWcJ.
> 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.

Reply via email to