NoMethodError in Store#add_to_cart

Dear all,

I'm going, by the book, through the book "Agile Web Development with
Rails, 2nd edition". I get stuck in section 8.2

I am running into following error:

You've made your add_to_cart action private which it shouldn't be
( rails ignores private methods when looking for actions, so it has
just rendered the template without running your add_to_cart method at


Oh, I didn’t notice that… thanks a lot … I appreciate it.