Forum: Ruby on Rails Problem

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
audioFixAdmin (Guest)
on 2006-01-14 01:49
(Received via mailing list)
Hi.  I'm doing a tutorial from the Thomas~Hansson book and am getting
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

I'd really appreciate it if anyone had ideas of what the problem could

Jan P. (Guest)
on 2006-01-14 02:10
(Received via mailing list)

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

Bimo R. (Guest)
on 2006-01-14 02:35
This topic is locked and can not be replied to.