Top "Activemodel" questions

A toolkit for building modeling frameworks like Active Record.

How can i set include_root_in_json to false for all my RoR models?

How can i set include_root_in_json to false for all my RoR models? I've tried to set ActiveModel::…

ruby-on-rails ruby-on-rails-3 json activemodel
on an ActiveModel Object, how do I check uniqueness?

In Bryan Helmkamp's excellent blog post called "7 Patterns to Refactor Fat ActiveRecord Models", he mentions using Form Objects to abstract …

ruby-on-rails validation activemodel rails-activerecord
Active Model Serializers: Adding extra information outside root in ArraySerializer

Say I have a model User and a serializer UserSerializer < ActiveModel::Serializer, and a controller that looks like this: …

ruby-on-rails ruby activemodel active-model-serializers