activerecord
most popular brand new
Rubyisms - MySQL-dump
his article is about Ruby On Rails and its interaction with MySQL in general.Real world Rails, Part 3: Optimizing ActiveRecord
ActiveRecord is a fantastic persistence framework, but since the framework hides low-level details from you, it can be prone to performance problems. Discover the most common problems and how you canHow to Build Simple Console Apps with Ruby and ActiveRecord
Database driven web applications are great, but nothing brings back the power and glory of 1986 like a database driven console application. To illustrate this, we'll be walking through a simple Ruby aEasy ActiveRecord Scripts
ActiveRecord (the ORM component of Rails) is really a pretty slick little piece of equipment. Not only does it integrate seamlessly with the other parts of the Rails stack, it can be easily used on itMagic Multi-Connections
Magic Multi-Connections allows you to write your models once, and use them for multiple database Rails databases at the same time. How? Using magical namespacing.Acts as Subversioned
acts_as_subversioned is a plugin for Ruby on Rails that provides intelligent revisioning of ActiveRecord objects through a Subversion repository.HowToUseActiveRecordOutsideRails in Ruby on Rails
Using an ActiveRecord object outside of Rails.Concerns in ActiveRecord
Ruby does not support multiple-inheritance. Personally, I have mixed feelings about that, but the fact of the matter is, you can accomplish almost exactly the same thing using modules.Basic Rails association cardinality
ActiveRecord associations can be used to describe relations with one-to-one, one-to-many and many-to-many cardinality. Each model uses an association to describe its role in the relation.Extending ActiveRecord associations
feature of ActiveRecord that lets you extend arbitrary associations with additional methods.Secrets of the Rails Console Ninjas
The console lets you fiddle with parts of your Rails app—models especially—in a real-time environment, instead of waiting for page reloads and clicking on links and using object dumps or breakpoints tExtending ActiveRecord
ActiveRecord::Extensions extends ActiveRecord... for you. It gives you features that ActiveRecord itself doesn't give,ActiveRecord::Base.find, Part 2
When working with Rails, it is tempting to conceptualize ActiveRecord#find into some genie that magically reaches into your database and pulls back the records matching the criteria you specified. Thecomposed_of_conversion plugin (rewrite of ActiveRecord.composed_of
This rewrite of the Active Record :composed_of method allows you to specify a block to convert incoming parameters to the correct object type.