Agile Web Development with Rails 7.2: Replace screenshot with better example (Page 79)

On page 78, you say:

  • The rows in the listing have alternating background colors. The Rails helper method called cycle() does this by setting the CSS class of each row to either bg-green-50 or bg-white, automatically toggling between the two style names on successive lines.

But the screenshot on the next page shows no evidence of that special feature. And, with the bullets and blue underlined text of the Show, Edit, and Destroy links, it doesn’t look like Tailwind touched the page at all. That said, the code does work just fine in my dev environment (see screenshot below).

I just checked, and it turns out that page 81 of “Agile Web Development with Rails 7” (2023) has the better screenshot.