Active Record is a pattern that combines domain logic with storage abstraction in single object.
I want to get all records where the created_at field is less than today (a date). Is there anything …
ruby activerecordRails has introduced new way to validate attributes inside model. When I use validates :title, :presence => true it works …
ruby-on-rails ruby ruby-on-rails-3 validation activerecordWhat is the difference between a belongs_to and a has_one? Reading the Ruby on Rails guide hasn't helped …
ruby-on-rails activerecordI am using polymorphic associations to track Comments in my project. All very straight forward stuff. The problem I have …
ruby-on-rails ruby activerecord polymorphic-associationsIt's possible to use multiple INSERT records in CodeIgniter Active Record without for, foreach and etc. ? My current code: foreach($…
codeigniter activerecord codeigniter-2I often face this problem.. Lets say ..In blog application, I need to email all the active users.. What I …
php activerecord yiiIn plain java I'd use: public User(String name, String email) { this.name = name; this.email = f(email); this.admin = …
ruby-on-rails activerecord ruby-on-rails-3.2Setup using a simple example: I've got 1 table (Totals) that holds the sum of the amount column of each record …
ruby-on-rails activerecord model callbackLet's say I have the following classes class SolarSystem < ActiveRecord::Base has_many :planets end class Planet < ActiveRecord::…
ruby-on-rails-3 activerecord has-manyWhen you do Something.find(array_of_ids) in Rails, the order of the resulting array does not depend on …
ruby-on-rails ruby activerecord