<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -9,7 +9,7 @@ class CommentsController &lt; ApplicationController
   end
 
   def destroy
-    @comment = comments.find(params[:id])
+    @comment = Comment.find(params[:id])
     @comment.destroy
     redirect_to item_path
   end</diff>
      <filename>app/controllers/comments_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -23,7 +23,7 @@
 						&lt;tr&gt;
 							&lt;td class=&quot;comment_footer&quot;&gt;
 								&lt;div class=&quot;comment_actions&quot;&gt;
-									&lt;div&gt;&lt;%= link_to(&quot;Delete&quot;, {:action =&gt; &quot;destroy&quot;, :id =&gt; @comment }, 
+									&lt;div&gt;&lt;%= link_to(&quot;Delete&quot;, item_comment_path(@item, comment), 
 											:class =&gt; &quot;comment_delete_button&quot;,
 											:confirm =&gt; &quot;Are you sure you want to delete this comment?&quot;, :method =&gt; :delete) %&gt;&lt;/div&gt;
 								&lt;/div&gt;</diff>
      <filename>app/views/comments/_comment.fbml.erb</filename>
    </modified>
    <modified>
      <diff>@@ -19,7 +19,7 @@
 	&lt;% fb_tabs do %&gt;
 		&lt;%= fb_tab_item &quot;Home&quot;, items_path, :selected=&gt;!@friends_items.nil? %&gt;
 		&lt;%= fb_tab_item &quot;My Items&quot;, my_items_items_path, :selected=&gt;!@items.nil?  %&gt;
-		&lt;%= fb_tab_item &quot;Post New Item&quot;, new_item_path, :selected=&gt;!@item.nil?  %&gt;
+		&lt;%= fb_tab_item &quot;Post New Item&quot;, new_item_path, :selected=&gt;(!@item.nil? and @item.title.nil?) %&gt;
 		&lt;%= fb_tab_item &quot;Become a Fan&quot;, fb_about_url, :align=&gt;&quot;right&quot; %&gt;
 		&lt;%= fb_tab_item &quot;Invite Friends&quot;, new_invitation_path, :selected=&gt;!@not_potential_disciples.nil?,
 					:align=&gt;&quot;right&quot; %&gt;</diff>
      <filename>app/views/layouts/application.fbml.erb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4d6b97de5aba843808b4c6a79352dcf1506771d6</id>
    </parent>
  </parents>
  <author>
    <name>Steve Hoffmann</name>
    <email>shoffmann@bendbulletin.com</email>
  </author>
  <url>http://github.com/shoffmann/Garage-Sale/commit/956e92b00b6b5831e67ee33917980d17e1df06ac</url>
  <id>956e92b00b6b5831e67ee33917980d17e1df06ac</id>
  <committed-date>2009-11-16T15:06:36-08:00</committed-date>
  <authored-date>2009-11-16T15:06:36-08:00</authored-date>
  <message>fixed comment delete problem and tab selection when show/edit item</message>
  <tree>c02aab4e8d1bb04e5f23fd5518c3395210e111c8</tree>
  <committer>
    <name>Steve Hoffmann</name>
    <email>shoffmann@bendbulletin.com</email>
  </committer>
</commit>
