chapter 11.2.1 - add an Ajax feature

Rails 3.1+ has different way for Ajax than Rails 2.x. There are
differences between the current code and the book's.