Return to Snippet

Revision: 67527
at October 2, 2014 19:27 by davidb


Initial Code
(Interest.all - user.interests).each do |interest|
  user.interest_users.build(:interest => interest)
end

Initial URL

                                

Initial Description
Useful for building nested entries checkboxes etc

Initial Title
Nested Attributes - Minus records from record set

Initial Tags
rails, ruby

Initial Language
Rails