objects.
I'm using active model serializer. I have a model event which has_many activities. I want to return the event …
ruby-on-rails active-model-serializersI'm using Rails 4.2.1 and active_model_serializers 0.10.0.rc2 I'm new to API's and chose active_model_serializers because it seems …
ruby-on-rails json active-model-serializersI have a serializer class FundingSerializer < ActiveModel::Serializer attributes :id, has_one :user has_one :tournament embed :ids, include: …
ruby-on-rails-4 active-model-serializersI'm getting the error: <NoMethodError: undefined method `read_attribute_for_serialization' for #<Record::ActiveRecord_Relation:0x007faa7cfe3318&…
ruby-on-rails active-model-serializersI am trying to send the serialized version of a model to a view as a param, using the gem …
ruby-on-rails json ruby-on-rails-4 active-model-serializers json-apiHow do I render an attribute only if some condition is true? For example, I want to render User's token …
ruby-on-rails active-model-serializersI'm trying to build a JSON representation of some Rails models using Active Model Serializer, where some models embed others. …
ruby-on-rails json active-model-serializersThis question pertains to AMS 0.8 I've got two models: class Subject < ActiveRecord::Base has_many :user_combinations has_ancestry …
ruby-on-rails active-model-serializersI have an array of JSON in my Rails App in this format using Active Model Serializer: [ { "contact" : {} }, { "contact" : {} } ] How …
ruby-on-rails activerecord active-model-serializersI want to decide numbers of attributes to output in my controller. But I have no idea have to do …
ruby-on-rails-4 active-model-serializers