Problem


#1

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:
19:
20:

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


#2

Hello,

try :class => ( the :::: makes it a symbol)

Regards
Jan


#3

Thanks