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
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...
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 ...
Using Rails 3.0.10, and Pos...