I\'m building a wishlist system using Sequel. I have a wishlists and items table and an items_wishlists join table (that name is what sequ
wishlists
items
items_wishlists
The recommended way to do this is to add a model for the join table. However, if you don't want to do that, you can do:
class Wishlist def _add_item(item, hash={}) model.db[:items_wishlists].insert(hash.merge(:item_id=>item.id, :wishlist_id=>id)) end end