<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts | Pragmatic Forums</title>
    <link>http://forums.pragprog.com/posts</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>Printed version posted by Jon Gretar Borgthorsson @ Fri, 05 Sep 2008 20:42:27 -0000</title>
      <description>&lt;p&gt;&lt;strong&gt;+1&lt;/strong&gt; for printed version.&lt;br /&gt;I hate reading off the screen for too long.&lt;/p&gt;</description>
      <pubDate>Fri, 05 Sep 2008 20:42:27 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:48:213:4438</guid>
      <author>Jon Gretar Borgthorsson</author>
      <link>http://forums.pragprog.com/forums/48/topics/213</link>
    </item>
    <item>
      <title>Controllers and Cocoa posted by Brian Marick @ Fri, 05 Sep 2008 13:29:29 -0000</title>
      <description>&lt;p&gt;I&amp;#8217;m going to introduce an NSWindowController in the chapter I&amp;#8217;m writing right now, where it&amp;#8217;ll be used for a preference pane. Since so much of what NSWindowController does is tied to assumptions about a document-centric architecture, I&amp;#8217;m planning on putting off most discussion until I have a chapter where I migrate the log from an ephemeral stream of text to a save-able document.&lt;/p&gt;


	&lt;p&gt;I was planning on moving the log from a stream of text in a text box to an editable tree structured view. I&amp;#8217;m starting to wonder if I&amp;#8217;ll have the pages to do that, though.&lt;/p&gt;


	&lt;p&gt;My teaching style tends toward the bottom up, so I&amp;#8217;m more likely to show how to use lower-level building blocks before higher-level ones that (often) replace them. I&amp;#8217;m not dogmatic about that, though.&lt;/p&gt;</description>
      <pubDate>Fri, 05 Sep 2008 13:29:29 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:915:4437</guid>
      <author>Brian Marick</author>
      <link>http://forums.pragprog.com/forums/76/topics/915</link>
    </item>
    <item>
      <title>Drag-and-drop example? posted by Brian Marick @ Fri, 05 Sep 2008 13:20:08 -0000</title>
      <description>&lt;p&gt;I&amp;#8217;ve put a drag-and-drop example onto my plan. It will be dragging a directory from the Finder and dropping it onto a table field that holds a pathname.&lt;/p&gt;


	&lt;p&gt;Page limit is going to be a problem, so it might not make it in.&lt;/p&gt;</description>
      <pubDate>Fri, 05 Sep 2008 13:20:08 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:891:4436</guid>
      <author>Brian Marick</author>
      <link>http://forums.pragprog.com/forums/76/topics/891</link>
    </item>
    <item>
      <title>fb_comments not working posted by Mike Mangino @ Fri, 05 Sep 2008 12:41:37 -0000</title>
      <description>&lt;p&gt;I think we eventually got this worked out on the Facebooker mailing list. I&amp;#8217;ll post the solution here too in case anyone else runs into this.&lt;/p&gt;


	&lt;p&gt;When using &lt;code&gt;fb:comments&lt;/code&gt; and &lt;code&gt;fb:board&lt;/code&gt;, the callback url you specify must support both &lt;span class="caps"&gt;GET&lt;/span&gt; and &lt;span class="caps"&gt;POST&lt;/span&gt; requests. If you are using &lt;span class="caps"&gt;RESTFUL&lt;/span&gt; rails, you may need to add a route specifically for the callback as mentioned on page 126 of the most recent beta.&lt;/p&gt;


	&lt;p&gt;It took me a long time to figure this out. It&amp;#8217;s a really subtle and tricky bug.&lt;/p&gt;</description>
      <pubDate>Fri, 05 Sep 2008 12:41:37 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:794:4435</guid>
      <author>Mike Mangino</author>
      <link>http://forums.pragprog.com/forums/59/topics/794</link>
    </item>
    <item>
      <title>Using form_tag within FB app and Facebooker routes posted by Mike Mangino @ Fri, 05 Sep 2008 12:39:23 -0000</title>
      <description>&lt;p&gt;I think the problem is in a slightly different place than you think. Your form is generating a &lt;span class="caps"&gt;POST&lt;/span&gt; form.&lt;/p&gt;


	&lt;p&gt;You showed the code:&lt;/p&gt;


&lt;pre&gt;
&lt;code&gt;
 &amp;lt;% form_tag(search_products_url, :canvas =&amp;gt; :true) %&amp;gt;
  &amp;lt;%= text_field_tag(:keyword, params[:keyword]) %&amp;gt;
  &amp;lt;% end %&amp;gt;
&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;

	&lt;p&gt;What you probably want is:&lt;br /&gt;&lt;pre&gt;
&lt;code&gt;
 &amp;lt;% form_tag(search_products_path, :method=&amp;gt;"get") do %&amp;gt;
  &amp;lt;%= text_field_tag(:keyword, params[:keyword]) %&amp;gt;
  &amp;lt;% end %&amp;gt;
&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/p&gt;


	&lt;p&gt;Using &lt;code&gt;search_products_url&lt;/code&gt; would work as well. (You don&amp;#8217;t need to specify &lt;code&gt;:canvas=&amp;gt;true&lt;/code&gt;. If the request is from a canvas page, the &lt;span class="caps"&gt;URL&lt;/span&gt; will be for a canvas page)&lt;/p&gt;


	&lt;p&gt;By default, &lt;code&gt;form_tag&lt;/code&gt; creates posts. If you want it to use gets, you need to specify the method.&lt;/p&gt;</description>
      <pubDate>Fri, 05 Sep 2008 12:39:23 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:917:4434</guid>
      <author>Mike Mangino</author>
      <link>http://forums.pragprog.com/forums/59/topics/917</link>
    </item>
    <item>
      <title>Rails 2.2 features in this book posted by Sam Ruby @ Fri, 05 Sep 2008 12:37:00 -0000</title>
      <description>&lt;p&gt;Assuming that the beta of 2.2 happens shortly, the bulk of the next beta of the book will be based on 2.1.1 and will have been tested against the beta of 2.2.  There will be a new chapter which describes how to enable depot for translation, this chapter (only) will require 2.2.&lt;/p&gt;</description>
      <pubDate>Fri, 05 Sep 2008 12:37:00 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:889:4433</guid>
      <author>Sam Ruby</author>
      <link>http://forums.pragprog.com/forums/66/topics/889</link>
    </item>
    <item>
      <title>Rails 2.2 features in this book posted by SoftMind @ Fri, 05 Sep 2008 10:27:09 -0000</title>
      <description>&lt;p&gt;Hi,&lt;/p&gt;


	&lt;p&gt;Good News to Share today.&lt;/p&gt;


	&lt;p&gt;David has just announced this on his blog&amp;#8230;&amp;#8221; Next upcoming release will be Rails 2.2 beta which is quite close.&amp;#8221;&lt;/p&gt;


	&lt;p&gt;Here&amp;#8217;s the link&lt;br /&gt;&lt;a href="http://weblog.rubyonrails.org/2008/9/5/rails-2-1-1-lots-of-bug-fixes"&gt;http://weblog.rubyonrails.org/2008/9/5/rails-2-1-1-lots-of-bug-fixes&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;Rails 2.1.1 was announced today and this news are covered in that blog.&lt;/p&gt;


	&lt;p&gt;I was more than happy to see that many folks thinks like me here regarding Rails 2.2 coverage and it would be a great loss to have a book without rails 2.2&lt;/p&gt;


	&lt;p&gt;Pl. let your support flow here..&lt;/p&gt;


	&lt;p&gt;Thanks&lt;/p&gt;


	&lt;p&gt;SoftMind&lt;/p&gt;</description>
      <pubDate>Fri, 05 Sep 2008 10:27:09 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:889:4432</guid>
      <author>SoftMind</author>
      <link>http://forums.pragprog.com/forums/66/topics/889</link>
    </item>
    <item>
      <title>Using form_tag within FB app and Facebooker routes posted by Paul Covell @ Fri, 05 Sep 2008 06:23:40 -0000</title>
      <description>&lt;p&gt;Ok I have solved the IncorrectSignature error explained above.&lt;/p&gt;


	&lt;p&gt;The error can be reproduced by using :method =&amp;gt; :get in the form_tag (in my case it was instead an unclosed form tag earlier on causing a get request&amp;#8212;but the results are the same).&lt;/p&gt;


	&lt;p&gt;The workaround for getting search terms into the &lt;span class="caps"&gt;URL&lt;/span&gt; seems to be a redirect within the action:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
def search
  if request.post?
    redirect_to search_products_url(:keyword =&amp;gt; params[:keyword])
    return
  end

  ...
end
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;This may be unavoidable given the structure of:&lt;/p&gt;


	&lt;p&gt;Browser &amp;lt;&lt;del&gt;&amp;gt; Facebook &amp;lt;&lt;/del&gt;&amp;gt; App&lt;/p&gt;


	&lt;p&gt;Anyone confirm this?&lt;/p&gt;</description>
      <pubDate>Fri, 05 Sep 2008 06:23:40 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:917:4430</guid>
      <author>Paul Covell</author>
      <link>http://forums.pragprog.com/forums/59/topics/917</link>
    </item>
    <item>
      <title>Using form_tag within FB app and Facebooker routes posted by Paul Covell @ Fri, 05 Sep 2008 04:33:10 -0000</title>
      <description>&lt;p&gt;I am building a search query and so I would like the behavior to be like this:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
GET /products/search --&amp;gt; index page + search input box
GET /products/search?keyword=blah&amp;#38;category=blah --&amp;gt; search results + refine search 
GET /products/search?keyword=blah&amp;#38;category=blah&amp;#38;page=3 --&amp;gt; 3rd page, for example
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;Products is RESTful, so I also use &lt;span class="caps"&gt;GET&lt;/span&gt; /products/&amp;lt;id&gt;/show &amp;#38;c.&lt;/p&gt;


	&lt;p&gt;routes.rb:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;map.resources :products, :collection =&amp;gt; { :search =&amp;gt; :get }&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;


	&lt;p&gt;products_controller.rb:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;
  def search
    @products = search_results ... # abridged
  end
&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;


	&lt;p&gt;search.fbml.erb:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;
  &amp;lt;% form_tag(search_products_url, :canvas =&amp;gt; :true) %&amp;gt;
  &amp;lt;%= text_field_tag(:keyword, params[:keyword]) %&amp;gt;
  &amp;lt;% end %&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;


	&lt;p&gt;Generates &lt;span class="caps"&gt;HTML&lt;/span&gt;:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;
&amp;lt;form action="http://apps.facebook.com/**canvas**/products/search" canvas="true" method="post"&amp;gt;
&amp;lt;input id="keyword" name="keyword" type="text" /&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;


	&lt;p&gt;Which, when data is entered, generates a &lt;span class="caps"&gt;GET&lt;/span&gt; to my application (dev log)&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
Processing ProductsController#search (for 127.0.0.1 at 2008-09-05 12:24:29) [GET]
 Parameters: {"fb_sig_time"=&amp;gt;"1220588633.3177", "category"=&amp;gt;"All", "fb_sig"=&amp;gt;"***", "fb_sig_in_new_facebook"=&amp;gt;"1", "_method"=&amp;gt;"GET", "fb_sig_locale"=&amp;gt;"en_US", "action"=&amp;gt;"search", "fb_sig_session_key"=&amp;gt;"***", "fb_sig_position_fix"=&amp;gt;"1", "fb_sig_in_canvas"=&amp;gt;"1", "fb_sig_request_method"=&amp;gt;"GET", "controller"=&amp;gt;"products", "fb_sig_expires"=&amp;gt;"1220675030", "fb_sig_added"=&amp;gt;"1", "fb_sig_friends"=&amp;gt;"&amp;lt;snip&amp;gt;", "fb_sig_api_key"=&amp;gt;"***", "keyword"=&amp;gt;"share", "fb_sig_user"=&amp;gt;"***", "fb_sig_profile_update_time"=&amp;gt;"1214711945"}
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;Finally leading to the error:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
Facebooker::Session::IncorrectSignature (Facebooker::Session::IncorrectSignature):
    /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:103:in `verify_signature'
    /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:88:in `verified_facebook_params'
    /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:32:in `facebook_params'
    /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:72:in `capture_facebook_friends_if_available!'
    /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:25:in `set_facebook_session'
    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/object/misc.rb:28:in `returning'
    /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:23:in `set_facebook_session'
    /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:167:in `ensure_authenticated_to_facebook'
&lt;/code&gt;&lt;/pre&gt;

I am open to other ways of doing it, but I do like having the search parameters in the &lt;span class="caps"&gt;URL&lt;/span&gt; for bookmarking/sending to others.
	&lt;ul&gt;
	&lt;li&gt;If I reclassify &amp;#8220;search&amp;#8221; as a &amp;#8220;post&amp;#8221; in routes.rb then it will work but I have to use another action for the index page and I lose the URLs.&lt;/li&gt;
		&lt;li&gt;If I create a new action &amp;#8220;search-update&amp;#8221; as a &amp;#8220;POST&amp;#8221; and then redirect to &amp;#8220;search&amp;#8221; as a &lt;span class="caps"&gt;GET&lt;/span&gt;, this will work (and it keeps the &lt;span class="caps"&gt;URL&lt;/span&gt;), but it seems both inefficient and fragile.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;Is there a correct recipe for this behavior?  I assume other people are building searches or other form input not directly related to an ActiveRecord object, so I think more treatment would be generally valuable.  In this case, it would be nice to know more about what&amp;#8217;s going on under the hood in Facebooker&amp;#8212;I know that it is doing some magic to make RESTful routes work in the first place.  My next stop is to read the code, but I was hoping to avoid this.&lt;/p&gt;


	&lt;p&gt;Thanks for any help.&lt;/p&gt;


	&lt;p&gt;Cheers,&lt;br /&gt;-Paul&lt;/p&gt;</description>
      <pubDate>Fri, 05 Sep 2008 04:33:10 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:917:4429</guid>
      <author>Paul Covell</author>
      <link>http://forums.pragprog.com/forums/59/topics/917</link>
    </item>
    <item>
      <title>moving code between repositories? posted by Daniel Bullok @ Fri, 05 Sep 2008 02:53:11 -0000</title>
      <description>&lt;p&gt;Hi.  &lt;br /&gt;I just bought the beta book this week.  It&amp;#8217;s very good.  I&amp;#8217;ve been hoping to find out how to move code between two repositories, which doesn&amp;#8217;t seem to be covered in the book yet (or I somehow missed it).  In subversion, I put all of my code in one repository.  While working on a project, I very frequently end up writing some code that I&amp;#8217;ll eventually use elsewhere.  I almost never pull this code out of the project and into a library until I need it for a second project.  Subversion makes this quite easy if your project and the library are in the same repository (svn move).  You can accomplish the same thing in git if your code is in the same repository, but using a single git repository for all your code isn&amp;#8217;t such a good idea.  So is there an easy way to move or copy code from one git repository into another while still retaining the history?&lt;br /&gt;Thanks.&lt;br /&gt;-Dan&lt;/p&gt;</description>
      <pubDate>Fri, 05 Sep 2008 02:53:11 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:64:916:4428</guid>
      <author>Daniel Bullok</author>
      <link>http://forums.pragprog.com/forums/64/topics/916</link>
    </item>
    <item>
      <title>Rails 2.2 features in this book posted by Tom Fillmore @ Thu, 04 Sep 2008 21:35:44 -0000</title>
      <description>&lt;p&gt;Ditto &amp;#8211; longer beta, add more value to the book with 2.2&lt;/p&gt;


	&lt;p&gt;&lt;span class="caps"&gt;BTW&lt;/span&gt; &amp;#8211; the book rocks..  8-)&lt;/p&gt;</description>
      <pubDate>Thu, 04 Sep 2008 21:35:44 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:889:4427</guid>
      <author>Tom Fillmore</author>
      <link>http://forums.pragprog.com/forums/66/topics/889</link>
    </item>
    <item>
      <title>Controllers and Cocoa posted by Christopher M. Hanson @ Thu, 04 Sep 2008 21:17:05 -0000</title>
      <description>&lt;p&gt;Rather than defining pure Ruby controller classes, the book should show how to leverage the Cocoa controller classes.  For example, the &lt;code&gt;WindowController&lt;/code&gt; class descends from &lt;code&gt;Controller&lt;/code&gt; rather than &lt;code&gt;NSWindowController&lt;/code&gt;; it should really be a subclass of Cocoa&amp;#8217;s &lt;code&gt;NSWindowController&lt;/code&gt; class, so it can take advantage of the built-in Cocoa functionality.&lt;/p&gt;


	&lt;p&gt;Similarly, presenting the log via a &amp;#8220;tree-structured view&amp;#8221; &#8212; which on Mac &lt;span class="caps"&gt;OS X&lt;/span&gt; is called an &lt;em&gt;outline view&lt;/em&gt; &#8212; should be done using an &lt;code&gt;NSTreeController&lt;/code&gt;.&lt;/p&gt;


	&lt;p&gt;Cocoa is not Rails, it&amp;#8217;s a distinct framework with its own architecture.  Developers, especially those just learning the framework, need to learn to follow the architecture provided by Cocoa to both get the best experience developing with it and take the best advantage of the framework&amp;#8217;s features.&lt;/p&gt;</description>
      <pubDate>Thu, 04 Sep 2008 21:17:05 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:915:4426</guid>
      <author>Christopher M. Hanson</author>
      <link>http://forums.pragprog.com/forums/76/topics/915</link>
    </item>
    <item>
      <title>fb_comments not working posted by Allen Walker @ Thu, 04 Sep 2008 20:12:23 -0000</title>
      <description>&lt;p&gt;I have tried both specifying a callback and not, neither works. Apparently when the user clicks post it is not posting to the comments tag properly. Anyway here&amp;#8217;s my code:&lt;/p&gt;


	&lt;p&gt;&amp;lt;%=fb_comments(&amp;#8220;comments_for_comment_lesson&amp;#8221;, true, true, 20,:showform =&amp;gt; true, :title =&amp;gt; &amp;#8220;Comment Lesson Comments&amp;#8221;) %&amp;gt;&lt;/p&gt;


	&lt;p&gt;Straight from the facebooker_tutorial just to try to get it to work.&lt;/p&gt;</description>
      <pubDate>Thu, 04 Sep 2008 20:12:23 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:794:4425</guid>
      <author>Allen Walker</author>
      <link>http://forums.pragprog.com/forums/59/topics/794</link>
    </item>
    <item>
      <title>dojo data chapter examples not working posted by Don Albertson @ Thu, 04 Sep 2008 15:22:29 -0000</title>
      <description>&lt;p&gt;This chapter needed a Q/A team to validate it.  So far, with 2 titles that I&amp;#8217;ve purchased I&amp;#8217;m deeply disappointed in the Pragmatic series.  Neither one would qualify as a shippable product.&lt;/p&gt;</description>
      <pubDate>Thu, 04 Sep 2008 15:22:29 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:58:351:4424</guid>
      <author>Don Albertson</author>
      <link>http://forums.pragprog.com/forums/58/topics/351</link>
    </item>
    <item>
      <title>Rails 2.2 features in this book posted by Daniel Wiesmann @ Thu, 04 Sep 2008 11:40:47 -0000</title>
      <description>&lt;p&gt;+1 on 2.2 coverage.&lt;/p&gt;</description>
      <pubDate>Thu, 04 Sep 2008 11:40:47 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:889:4423</guid>
      <author>Daniel Wiesmann</author>
      <link>http://forums.pragprog.com/forums/66/topics/889</link>
    </item>
    <item>
      <title>highlight effect posted by Tan YL @ Thu, 04 Sep 2008 08:16:07 -0000</title>
      <description>&lt;p&gt;lol i solved it u wouldn&amp;#8217;t believe how stupid the answer is. i have to make a 2nd @lineprice2 = SglineItem.find(:all, :conditions =&amp;gt; &#8220;sguser_id =#{params[:ad]}&#8221;) after the if loop because the @lineprice is still referencing the old object which had the old list. i knew it wasn&amp;#8217;t anything to do with the rjs. thanks for your help sam&lt;/p&gt;</description>
      <pubDate>Thu, 04 Sep 2008 08:16:07 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:908:4422</guid>
      <author>Tan YL</author>
      <link>http://forums.pragprog.com/forums/66/topics/908</link>
    </item>
    <item>
      <title>highlight effect posted by Tan YL @ Thu, 04 Sep 2008 07:40:48 -0000</title>
      <description>&lt;p&gt;sgpanel.html.erb:&lt;/p&gt;


	&lt;p&gt;&amp;lt; ul class=&amp;#8221;panes&amp;#8221; id=&amp;#8221;panecontrol1&amp;#8221;&amp;gt;&lt;br /&gt;&amp;lt; li id=&amp;#8221;vendor_pane&amp;#8221; class=&amp;#8221;pane-selected&amp;#8221;&amp;gt;&lt;/p&gt;


	&lt;p&gt;&amp;lt; div id=&amp;#8221;calculator&amp;#8221;&amp;gt;&lt;br /&gt;&amp;lt;&lt;span&gt;= render :partial =&amp;gt; &amp;#8216;calculator&amp;#8217;, :id=&amp;gt; @sguser.id, :object =&amp;gt; {@item,@lineprice}&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt; /div&amp;gt;&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;&amp;lt; /li&amp;gt;
&amp;lt; li id="part_pane" class="pane-unselected"&amp;gt;&lt;/code&gt;&lt;/pre&gt;


	&lt;pre&gt;&lt;code&gt;&amp;lt; /li&amp;gt;
&amp;lt; li id="map_pane" class="pane-unselected"&amp;gt;&lt;/code&gt;&lt;/pre&gt;


	&lt;pre&gt;&lt;code&gt;&amp;lt; /li&amp;gt;
&amp;lt; li id="notes_pane" class="pane-unselected"&amp;gt;&lt;/code&gt;&lt;/pre&gt;


	&lt;pre&gt;&lt;code&gt;&amp;lt; /li&amp;gt;&lt;br /&gt;&amp;lt; ul&amp;gt;&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;_add_to_cart.html.erb:&lt;br /&gt;&amp;lt;table&gt;&lt;br /&gt;&amp;lt;% for product in @lineprice %&amp;gt;&lt;/p&gt;
	&lt;pre&gt;&lt;code&gt;&amp;lt;% if product.groceries.id == @item.groceries_id %&amp;gt;
   &amp;lt;tr id="highlighted"&gt;
   &amp;lt;% else %&amp;gt;
   &amp;lt;tr&gt;
   &amp;lt;% end %&amp;gt;
      &amp;lt;td&gt;&amp;lt;%= product.groceries.brand %&amp;gt;&amp;lt;/td&gt;
     &amp;lt;td&gt;&amp;lt;%= product.groceries.name %&amp;gt;&amp;lt;/td&gt;
     &amp;lt;td&gt;&amp;lt;%= product.quantity %&amp;gt;&amp;lt;/td&gt;
     &amp;lt;td&gt;&amp;lt;&lt;span&gt;= qx(product,"c") %&amp;gt;&amp;lt;&lt;/span&gt; totalC += qx(product,"c")%&amp;gt;&amp;lt;/td&gt;
     &amp;lt;td&gt;&amp;lt;&lt;span&gt;= qx(product,"n") %&amp;gt;&amp;lt;&lt;/span&gt; totalN += qx(product,"n") %&amp;gt;&amp;lt;/td&gt;
     &amp;lt;td&gt;&amp;lt;&lt;span&gt;= qx(product,"s") %&amp;gt;&amp;lt;&lt;/span&gt; totalS += qx(product,"s") %&amp;gt;&amp;lt;/td&gt;
     &amp;lt;td&gt;&amp;lt;&lt;span&gt;= qx(product,"g") %&amp;gt;&amp;lt;&lt;/span&gt; totalG += qx(product,"g") %&amp;gt;&amp;lt;/td&gt;
     &amp;lt;td&gt;&amp;lt;&lt;span&gt;= qx(product,"ca") %&amp;gt;&amp;lt;&lt;/span&gt; totalCa += qx(product,"c") %&amp;gt;&amp;lt;/td&gt;
     &amp;lt;td&gt;item:&amp;lt;&lt;span&gt;= @item.groceries_id&lt;/span&gt;&amp;gt;Product:&amp;lt;%= product.groceries.id %&amp;gt;&amp;lt;/td&gt;
     &amp;lt;td&gt;&amp;lt;&lt;span&gt;= cheapest=product.groceries.supermarket.attributes.except('id', 'groceries_id','created_at','updated_at').values.min %&amp;gt; &amp;lt;&lt;/span&gt;= Groceries.namecompare2(product) &lt;span&gt;&amp;gt;&amp;lt;&lt;/span&gt; totalCh += cheapest %&amp;gt;&amp;lt;/td&gt;
 &amp;lt;/tr&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;&amp;lt;table&gt;&lt;br /&gt;&lt;del&gt;--&lt;/del&gt;-&lt;del&gt;--&lt;/del&gt;-&lt;del&gt;--&lt;/del&gt;-&lt;del&gt;--&lt;/del&gt;-&lt;del&gt;--&lt;/del&gt;-&lt;del&gt;--&lt;/del&gt;-&lt;del&gt;--&lt;/del&gt;-&lt;del&gt;--&lt;/del&gt;-&lt;del&gt;-&lt;/del&gt;&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;add_to_cart contains the full replacement but the weird thing is that i need to refresh the whole page to see the new product. It just doesn&amp;#8217;t make sense. I am nearly doing the same things that u are doing in depot except using mysql instead of a session to store data&lt;/p&gt;</description>
      <pubDate>Thu, 04 Sep 2008 07:40:48 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:908:4421</guid>
      <author>Tan YL</author>
      <link>http://forums.pragprog.com/forums/66/topics/908</link>
    </item>
    <item>
      <title>Rails 2.2 features in this book posted by Mike Bailey @ Thu, 04 Sep 2008 03:44:39 -0000</title>
      <description>&lt;p&gt;I&amp;#8217;d be happy to wait for 2.2 to be covered.&lt;/p&gt;</description>
      <pubDate>Thu, 04 Sep 2008 03:44:39 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:889:4420</guid>
      <author>Mike Bailey</author>
      <link>http://forums.pragprog.com/forums/66/topics/889</link>
    </item>
    <item>
      <title>highlight effect posted by Sam Ruby @ Thu, 04 Sep 2008 01:47:50 -0000</title>
      <description>&lt;p&gt;You certainly can replace the page in JS.&lt;/p&gt;


	&lt;p&gt;Perhaps it is the formatting, and perhaps you haven&amp;#8217;t provided enough information.&lt;/p&gt;


	&lt;p&gt;Your rjs file has two lines.  The first refers to an id named &#8216;calculated&#8217; and a partial named &#8216;add_to_cart&#8217;.  I can find neither in the text you have provided.  Take a look at your &lt;span class="caps"&gt;HTML&lt;/span&gt;, and make sure that the element with the id named &#8216;calculated&#8217; includes the portions of the table you want replaced, and that the partial named &#8216;add_to_cart&#8217; contains a full and suitable replacement.&lt;/p&gt;


	&lt;p&gt;Once that is in place, the second line should have no problem.&lt;/p&gt;</description>
      <pubDate>Thu, 04 Sep 2008 01:47:50 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:908:4419</guid>
      <author>Sam Ruby</author>
      <link>http://forums.pragprog.com/forums/66/topics/908</link>
    </item>
    <item>
      <title>How do I get EUnit? posted by Steinar G&#237;slason @ Thu, 04 Sep 2008 00:52:45 -0000</title>
      <description>&lt;p&gt;Has anyone had trouble using Eunit on Windows?  &lt;br /&gt;Tried the source in the bundle for windows, it didn&amp;#8217;t work for me.  &lt;br /&gt;I also downloaded it using the path above (using cygwin) and build the eunit from scratch and compiled the source (in cygwin),  but I keep getting this error&lt;/p&gt;


	&lt;p&gt;/test_fizzbuzz.erl:none: error in parse transform &amp;#8216;eunit_autoexport&amp;#8217;: {undef, 
                                             [{eunit_autoexport,
                                               parse_transform, .... etc.&lt;/p&gt;


	&lt;p&gt;when running c(test_fizzbuzz) in the erlang shell.&lt;/p&gt;


	&lt;p&gt;The error appeaers when I add the line:&lt;br /&gt;-include_lib(&amp;#8220;eunit/include/eunit.hrl&amp;#8221;).&lt;/p&gt;


	&lt;p&gt;I am not suburb at reading erlang error messages, so if anyone can point me to the right direction it would be appreciated.&lt;/p&gt;</description>
      <pubDate>Thu, 04 Sep 2008 00:52:45 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:73:675:4418</guid>
      <author>Steinar G&#237;slason</author>
      <link>http://forums.pragprog.com/forums/73/topics/675</link>
    </item>
    <item>
      <title>highlight effect posted by Tan YL @ Thu, 04 Sep 2008 00:46:55 -0000</title>
      <description>&lt;p&gt;&amp;#8220;Or it can send down Javascript instructions which causes either the attribute itself or even an entire row to be inserted into the &lt;span class="caps"&gt;DOM&lt;/span&gt;.&amp;#8221;&lt;/p&gt;


	&lt;p&gt;wait how come in your example its possible to add a new line to the table but in mine i can&amp;#8217;t pass a new row in? aren&amp;#8217;t we doing essentially the same taking replacing the page with a totally new page and allowing the for loop to get all the objects inside?&lt;/p&gt;</description>
      <pubDate>Thu, 04 Sep 2008 00:46:55 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:908:4417</guid>
      <author>Tan YL</author>
      <link>http://forums.pragprog.com/forums/66/topics/908</link>
    </item>
    <item>
      <title>Update posted by Antonio Subirana Rodr&#237;guez @ Wed, 03 Sep 2008 21:52:32 -0000</title>
      <description>&lt;p&gt;Thanks for the quick update, Ed!&lt;/p&gt;</description>
      <pubDate>Wed, 03 Sep 2008 21:52:32 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:67:914:4416</guid>
      <author>Antonio Subirana Rodr&#237;guez</author>
      <link>http://forums.pragprog.com/forums/67/topics/914</link>
    </item>
    <item>
      <title>An idea for a future installment posted by Ira Davis @ Wed, 03 Sep 2008 21:20:04 -0000</title>
      <description>&lt;p&gt;Do you suppose you could cover the metadata for an object?  That is if Ruby exposes this.  I&amp;#8217;ve really enjoyed the series and I think it has helped my understanding of object orientation in general and certainly helped my understanding or Ruby.&lt;/p&gt;</description>
      <pubDate>Wed, 03 Sep 2008 21:20:04 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:77:913:4415</guid>
      <author>Ira Davis</author>
      <link>http://forums.pragprog.com/forums/77/topics/913</link>
    </item>
    <item>
      <title>Rails 2.2 features in this book posted by Yvan Cottyn @ Wed, 03 Sep 2008 21:16:03 -0000</title>
      <description>&lt;p&gt;I wouldn&amp;#8217;t mind neither to wait a little longer for the printed copy if 2.2 were covered.&lt;/p&gt;</description>
      <pubDate>Wed, 03 Sep 2008 21:16:03 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:889:4414</guid>
      <author>Yvan Cottyn</author>
      <link>http://forums.pragprog.com/forums/66/topics/889</link>
    </item>
    <item>
      <title>highlight effect posted by Sam Ruby @ Wed, 03 Sep 2008 18:23:49 -0000</title>
      <description>&lt;p&gt;Good analysis, but wrong conclusion.  Permit me to explain.&lt;/p&gt;


	&lt;p&gt;The data is being saved to the database fast enough.  In fact it is saved right when you ask it too.  But if you look at your controller, the next thing you do is respond with javascript.  That javascript will tell the client how to highlight a field that has a certain id attribute on it, but at no point in this processing does the server actually return an updated page to the client with the new attribute or line in it.&lt;/p&gt;


	&lt;p&gt;This can be done in a number of ways.  Each require manipulating the &lt;span class="caps"&gt;DOM&lt;/span&gt;.  The server can send down a partial, if there is JavaScript code on the client that &amp;#8220;catches&amp;#8221; this and knows where to insert it.  Or it can send down Javascript instructions which causes either the attribute itself or even an entire row to be inserted into the &lt;span class="caps"&gt;DOM&lt;/span&gt;.&lt;/p&gt;


	&lt;p&gt;But at this point, we are going beyond Rails.  Rails, of course, will be happy to deliver the partial or the JavaScript, but learning more about Prototype and script.aculo.us may be helpful before tackling this problem.  I&amp;#8217;m not an expert on those technologies myself &amp;#8211; I learned how to do these tasks with raw JavaScript and get by with that knowledge&amp;#8212;an approach I wouldn&amp;#8217;t recommend to anyone these days.&lt;/p&gt;</description>
      <pubDate>Wed, 03 Sep 2008 18:23:49 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:908:4413</guid>
      <author>Sam Ruby</author>
      <link>http://forums.pragprog.com/forums/66/topics/908</link>
    </item>
  </channel>
</rss>
