Using Rack middleware to parse JSON
In attempting to AJAX-ize the site, I had the desire to handle JSON as if it were form post data. Queue a Rack middleware solution. rack-contrib contains a bunch of common middleware extensions, one...
View ArticleLost sleep over JSON and Rack::PostBodyContentTypeParser
I’ve been fighting this issue the last couple nights. I wrote earlier about how Rack::PostBodyContentTypeParser can automagically turn a posted JSON object into a Rack / Sinatra params hash. So, I...
View Article
More Pages to Explore .....