Forum: Ruby on Rails Problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7ea30fe09b56abbfa53cff4653b004fc?d=identicon&s=25 audioFixAdmin (Guest)
on 2006-01-14 00:49
(Received via mailing list)
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
E48d29dc8fedb2878fa518d41cc63d88?d=identicon&s=25 Jan Prill (Guest)
on 2006-01-14 01:10
(Received via mailing list)
Hello,

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

Regards
Jan
Bd197d8ce0d9fa1a174a13ae108fa2db?d=identicon&s=25 Bimo Remus (bimo)
on 2006-01-14 01:35
Thanks
This topic is locked and can not be replied to.