title: How do i only allow users that created a category to edit it in rails
body: <p>I have two tables <code>bookmarks</code> and <code>categories</code>. These models have a HABTM relationship. </p>
  
  <p>Everything works as it should but I only want to allow <code>users</code> who created a <code>category</code> to be able to edit them. I have this set up on the <code>bookmarks</code> okay but is there a way to do it using the relationship between <code>bookmarks</code> and <code>categories</code> or do I just set it up the same way as <code>bookmarks</code>? which is having a <code>user_id</code> in the <code>categories</code> table.</p>