From: James Edward Gray II Date: 2006-01-14T06:20:00+09:00 Subject: Re: why is this a comile error On Jan 13, 2006, at 3:14 PM, bimo remus wrote: > I am doing a tutorial from the Thomas~Hansson book and am getting this > error: > > Extracted source (around line #17): > > 14: <%= link_to 'Add to Cart', > 15: {:action => 'add_to_cart', > 16: :id => product }, > 17: class => 'addtocart' %> > 18:
> 19: > 20: 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. Hope that helps. James Edward Gray II