Hello,
try :class => ( the :::: makes it a symbol)
Regards
Jan
> Hi. I''m doing a tutorial from the Thomas~Hansson book and am
getting
> this error message:
>
> Extracted source (around line #17):
>
> 14: <%= link_to ''Add to Cart'',
> 15: {:action => ''add_to_cart'',
> 16: :id => product },
> 17: class => ''addtocart'' %>
> 18: </br>
> 19: </td>
> 20: </tr>
>
> Trace of template inclusion: /app/views/store/index.rhtml
>
> I''ve compared what I have with the book and they seem the same.
I''m
> thinking that either I''m missing something (very possible) or
maybe
> the error is actually being generated somewhere else but I''m very
> green (a newbie)...
>
> I''d really appreciate it if anyone had ideas of what the problem
could
> be.
>
> b
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>