RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: bpardee
For version 0.9 and above, the json_for should change from:
target.active_model_serializer.new(target, options).to_json
to
ActiveModel::Serializer.serializer_for(target).new(target, options).to_json
For version 0.9 and above, the json_for should change from:
target.active_model_serializer.new(target, options).to_json
to
ActiveModel::Serializer.serializer_for(target).new(target, options).to_json