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.
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
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
Jan P. (Guest)
on 2006-01-14 02:10
(Received via mailing list)
Hello,

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

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