Nested Attributes - Minus records from record set

/ Published in: Rails
Save to your folder(s)

Useful for building nested entries checkboxes etc

Copy this code and paste it in your HTML
  1. (Interest.all - user.interests).each do |interest|
  2. => interest)
  3. end

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.