Example of a has_and_belongs_to_many relationship in Rails 4