class Job
  has_many :tasks

...

Ruby Convert SQL scopes to somet...

by KieranP, September 07, 2011 15:46, No refactoring, tagged with rails, postgres, named_scope, scopes

Using Rails 3.0.10, and Pos...

74198b06bc9e68739debfe6c23e070d3 Talk
class User < ActiveRecord::Base
  has_many :assets, :foreign_key => 'creator_id'

...

Ruby Change a finder method w/ p...

by saizai.livejournal.com, June 06, 2009 00:16, No refactoring, tagged with rails, activerecord, associations, named_scope

How do I turn this into a h...

237338834f2f8948e862e91392a8c1b4 Talk
class Asset < ActiveRecord::Base
	belongs_to :account
	belongs_to :asset_type
...

Ruby Advanced search form & ...

by Erez Ben Shoham, March 16, 2009 11:33, 3 refactorings, tagged with search, form, model, named_scope

I have an Asset model in a ...

30bcacccb1c7fa2b577b905a2128027f Talk