Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Brad Pardee's Profile

GitHub User: bpardee

Comments by Brad Pardee

Avatar

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