James Gray
1/13/2006 9:44:00 PM
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