Skip to Content
Rails 4 in Action
book

Rails 4 in Action

by Yehuda Katz, Rebecca Skinner, Stephen Klabnik, Ryan Bigg
August 2015
Intermediate to advanced content levelIntermediate to advanced
576 pages
18h 13m
English
Manning Publications
Content preview from Rails 4 in Action

Chapter 11. Tagging

This chapter covers

  • Creating a has_and_belongs_to_many relationship between tickets and tags
  • Restricting access to tag creation and tag editing
  • Adding search functionality for tickets with a given tag or state

In chapter 10 you saw how to give your tickets states (such as “New” or “Open”) so that their progress can be indicated. In this chapter, you’ll see how to give your tickets tags. Tags are useful for grouping similar tickets together, whether by Agile iterations, feature sets, or any other method of grouping. Without tags, you could crudely group tickets together by setting a ticket’s title to something such as “Tag - [name].” This method, however, is messy and difficult to sort through. Having a group of tickets ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Rails Crash Course

Rails Crash Course

Anthony Lewis

Publisher Resources

ISBN: 9781617291098Publisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link