Tuesday, March 19, 2013

restful_json: An Easy Way to Create Rails RESTful-ish JSON Services

restful_json reduces the amount of code that you need to write in your Rails controllers to implement declarative, featureful JSON service controllers for Javascript frameworks like AngularJS.

It should work with Rails 3.1+ and Rails 4. It uses Adam Hawkin's permitters, strong_parameters, and active_model_serializers, so it helps you act like you are using Rails 4.0, even if you're using Rails 3.1.

Check it out, it's finally in Rubygems. We've been using a slightly modded version in production for a while, and works great.

No comments: