From: James Edward Gray II Date: 2006-01-14T06:44:18+09:00 Subject: Re: why is this a comile error On Jan 13, 2006, at 3:39 PM, Caleb Tennis wrote: > >> You are missing one character from the book. On the last line it's >> ":class", not "class". The latter is a reserved word in Ruby with >> special meaning, thus the problem. > > As well as the closing brace after 'addtocart' No, I don't think so. Here's the call again: > <%= link_to 'Add to Cart', {:action => 'add_to_cart', :id => > product }, class => 'addtocart' %> Don't let that second Hash argument throw you. James Edward Gray II