Modern Front-End Development for Rails, Second Edition - incorrect code? (page 170)