The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

[rails] Agile WebDev Cart Issue (Displaying Total Price)

i am getting an error message that has me stumped. i cleared my cart, i cleared my cookies (which destroyed my original post and forced me to relogin here - ugggh!), i verified the code three times and it matches the book.

skeeterbug, I have updated to Rails 1.2 but still have the same issue you have. I am using Ruby 1.8.5, does anyone know if that may be the problem? The second edition of "Agile Web Dev with Rails" recommended using 1.8.4. Also, I used InstantRails to setup my environment and then updated to Rails 1.2 (beta)

What is more, when I look in the Ruby Documentation I don't see a "sum" method for Array...am I correct? That may explain why we are both getting the error:
"undefined method `sum' for #<Array:0xb793d290>" :-)

skeeterbug, I have updated to Rails 1.2 but still have the same issue you have. I am using Ruby 1.8.5, does anyone know if that may be the problem? The second edition of "Agile Web Dev with Rails" recommended using 1.8.4. Also, I used InstantRails to setup my environment and then updated to Rails 1.2 (beta)

What is more, when I look in the Ruby Documentation I don't see a "sum" method for Array...am I correct? That may explain why we are both getting the error:
"undefined method `sum' for #<Array:0xb793d290>" :-)