I use the fourth edition of your book and when i put this command in the terminal:
curl –silent http://localhost:3000/products/3/who_bought.atom
i get very long printout where i find, among other things:
<header> <h1> NoMethodError in Products#who_bought </h1> </header> <div id="container"> <p> Showing <i>/home/bartek/Pulpit/CQ_RoR/work/depot/app/views/products/who_bought.atom.builder</i> where line <b>#2</b> raised: </p>
undefined method `title' for nil:NilClass ~~~ ~~~
I did all i should according to the chapter and i dont know what is going on. Please help.