# Problem

**URL:** <https://www.ruby-forum.com/t/problem/95182>\
**Category:** Rails\
**Created:** [January 14, 2006, 12:49am UTC](https://www.ruby-forum.com/t/problem/95182 "2006-01-14T00:49:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![audioFixAdmin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@audioFixAdmin](https://www.ruby-forum.com/u/audioFixAdmin)\
**Post date:** [January 14, 2006, 12:49am UTC](https://www.ruby-forum.com/t/problem/95182/1 "2006-01-14T00:49:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![audioFixAdmin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@audioFixAdmin](https://www.ruby-forum.com/u/audioFixAdmin)\
**Post date:** [January 14, 2006, 1:10am UTC](https://www.ruby-forum.com/t/problem/95182/2 "2006-01-14T01:10:56Z")

</div>

Hello,

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

Regards  
Jan

---

<div class="post-metadata">

**Author:** ![audioFixAdmin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@audioFixAdmin](https://www.ruby-forum.com/u/audioFixAdmin)\
**Post date:** [January 14, 2006, 1:35am UTC](https://www.ruby-forum.com/t/problem/95182/3 "2006-01-14T01:35:35Z")

</div>

Thanks
