Posted By

bordalix on 06/11/07


Tagged


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

bezugen
endorfin
webstic


Want to populate a select box with just the items you HAVEN’T associated?


 / Published in: Rails
 

  1. @post = Post.find(params[id])
  2. @categories = Category.find(:all) - @post.categories

Report this snippet  

You need to login to post a comment.