I am playing with Jose Valim's active_model_serializers Gem.
I am attempting to call a custom serializer in my controller, and it looks like :json
is not using the ActiveModel::ArraySerializer
as it should.
When I define the default active_model_serializer
in the controller, the serializer works fine; however, when I call a custom one like this in the controller:
render :json => @project, :serializer => ProjectSerializer
I receive the following error:
wrong number of arguments (0 for 1)
I am using Ruby 1.9.2, and Rails 3.2.7. Any help is appreciated as I need to create a few different serializers for any given model.
Thanks!