Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix issue with passed routes and provides #1095
This patch addresses an oddball issue that was the source of much hair-pulling this evening. Because the
Consider an example:
get '/:id', :provides => :json do pass if params[:id] =~ /\D/ # some processing end get '/foo', :provides => :text do # some other processing end
This patch implements solution 1 but I'm interested in your feedback.
Thank you in advance!
It seems as though "pinning" the content-type of the response in