Rails ActiveRecord JSON API example.