I would like to limit the number of items in an association. I want to ensure the User doesn\'t have more than X Things. This question was asked before and the solution had th
How you investigated using accepts_nested_attributes_for?
accepts_nested_attributes_for :things, :limit => 5
http://api.rubyonrails.org/classes/ActiveRecord/NestedAttributes/ClassMethods.html
That said, I think accepts_nested_attributes_for seems to only be appropriate for certain types of situations. For example, if you were creating a command line API, I think it's a pretty awful solution. However, if you have a nested form it works well enough (most of the time).