Firsthand Web Development, Ruby on Rails, Montréal
All things Ruby on Rails, Content Management Systems and Web Development
Showing posts with label
associations
.
Show all posts
Showing posts with label
associations
.
Show all posts
Wednesday, September 8, 2010
Class Methods Called Against Associations in Active Record
›
Did you know you can call class methods against associations? Admittedly this is a trivial example, but here goes: Class methods also work ...
Monday, March 17, 2008
Fundamentals: How Associations are Validated
›
Summary: Adding validates_associated method to your parent ActiveRecord classes will ensure both the parent and child class are valid befo...
Sunday, December 16, 2007
Fundamentals: When Associations Get Saved (with new parent and child models)
›
Summary : Use the “Auto-generated methods” on the new parent object to build new associated child objects to gain the benefits of less code...
Home
View web version