A toolkit for building modeling frameworks like Active Record.
When using autocomplete in the console, I often see "_was" postpended to my attributes. But I can't find any documentation …
ruby-on-rails ruby activerecord activemodelI am trying to send a notification email in my rails app only if the value of my column status …
ruby-on-rails controller attributes activemodelI have an object that inherits from ActiveRecord, yet it has an attribute that is not persisted in the DB, …
ruby-on-rails-3 activerecord activemodelI have a nested attribute on which I perform presence validation. I am trying without success to provide translations for …
ruby-on-rails activemodel rails-i18nI have the following model: class Contact attr_accessor :name, :emails, :message def initialize(attrs = {}) attrs.each do |k, v| …
ruby-on-rails-3 activemodelI tried create new model which has auto type casting without table in database. I've tried to inherit from ActiveRecord::…
ruby-on-rails ruby activerecord ruby-on-rails-5 activemodelHow to impliment ActiveModel associations (tableless nested models)? For example: book has many chapters With ActiveRecord I would create two …
ruby-on-rails-3 activemodelWhere are the default validation error messages in Rails 3.0? What is the equivalent of ActiveRecord::Error.default_error_messages[:taken], …
ruby-on-rails validation ruby-on-rails-3 activemodelI want to DRY up several models by moving shared scopes into a module, something like: module CommonScopes extend ActiveSupport::…
ruby-on-rails activerecord rspec scope activemodelWith a regular ActiveRecord/SQL setup in Rails, in console when I execute commands *.where, *.all etc., I get back …
ruby-on-rails-3 mongoid activemodel