In our previous chapter, we built out features for our Page objects. We added a way to search for pages by keyword and a way to look up archives of pages. We did this through a “search service,” which aided in separating our controller logic from our model logic.
In this chapter, we’ll add other features to our pages. We’ll add the ability to create and tag pages to categorize them.
Adding Page Tags
First, we want to add the ability to add tags to our Page records. Tags are a way to categorize our pages. Instead of using a gem such as acts-as-taggable-on, we’re going to implement our own tagging ...