<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>21apps - inspiring people to change the way they work - Latest Comments in Working through Agile Web Development with Rails – Part 3</title><link>http://21apps.disqus.com/</link><description>we help our clients realise SharePoint Business Value</description><atom:link href="https://21apps.disqus.com/working_through_agile_web_development_with_rails_part_3/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 24 Jun 2008 13:40:00 -0000</lastBuildDate><item><title>Re: Working through Agile Web Development with Rails – Part 3</title><link>http://www.21apps.com/agile/working-through-agile-web-development-with-rails-part-3/#comment-6671432</link><description>&lt;p&gt;I'm still having problems in FireFox, IE, and Safari.&lt;br&gt;&lt;br&gt;&lt;br&gt;I noticed the author updated the code so it now reads on two lines:&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt; current_item = &lt;a href="http://CartItem.new" rel="nofollow noopener" target="_blank" title="CartItem.new"&gt;CartItem.new&lt;/a&gt;(product)&lt;br&gt;&lt;br&gt; @items &amp;lt;&amp;lt; current_item&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;(I tried it on one line like you wrote but but I still have the error). The cart does get updated but I need to hit F5 to refresh the page. I noticed too in the add_to_cart function of store controller.rb (see below), if I use redirect_to_index then I can click on an image and it adds the product to my cart and renders it properly. However if I use the respond_to { |format| format.js} I get a page in safari that displays a try block with an enormous Element.update call.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt; &lt;br&gt;&lt;br&gt;def add_to_cart&lt;br&gt;&lt;br&gt;  begin&lt;br&gt;&lt;br&gt;    product = Product.find(params[:id])&lt;br&gt;&lt;br&gt;  rescue ActiveRecord::RecordNotFound&lt;br&gt;&lt;br&gt;       logger.error("Attempt to access invalid product #{params[:id]}")&lt;br&gt;&lt;br&gt; redirect_to_index("Invalid Product")&lt;br&gt;&lt;br&gt;      else&lt;br&gt;&lt;br&gt; @cart = find_cart&lt;br&gt;&lt;br&gt; @current_item = @cart.add_product(product)&lt;br&gt;&lt;br&gt; #respond_to { |format| format.js }&lt;br&gt;&lt;br&gt; redirect_to_index&lt;br&gt;&lt;br&gt;      end&lt;br&gt;&lt;br&gt;    end&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 24 Jun 2008 13:40:00 -0000</pubDate></item><item><title>Re: Working through Agile Web Development with Rails – Part 3</title><link>http://www.21apps.com/agile/working-through-agile-web-development-with-rails-part-3/#comment-6671431</link><description>&lt;p&gt;Thank you so much for this - was having the same problem!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stuart</dc:creator><pubDate>Thu, 01 Nov 2007 16:41:00 -0000</pubDate></item></channel></rss>