Displaying 1 result from an estimated 1 matches for "component_us".
Did you mean:
component's
2011 Feb 08
0
Sorting by inner has_many through attribute
Hello everyone,
For this model:
class User < ActiveRecord::Base
has_many :component_users, :dependent => :destroy
has_many :components, :through => :component_users, :conditions =>
[''components.active = ?'',true]
accepts_nested_attributes_for :component_users, :reject_if => lambda
{ |a| a[:components].blank? || a[:components]
[:name].blank? }, :allow...