this should be in another context & also, `book.update_attributes(tags: ['tag1', 'tag2'])` can replace your 2 lines: 35 & 36