<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -54,7 +54,7 @@ class CommentsController &lt; ApplicationController
   end
 private
   def find_post
-    @post = Post.find(params[:post_id])
+    @post = Post.find_by_permalink(params)
   end
   def find_comment
     @comment = @post.comments.find(params[:id])</diff>
      <filename>app/controllers/comments_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -15,7 +15,7 @@ class ModerationsController &lt; ApplicationController
       @comment.moderate
       format.html do
         post = @comment.post
-        flash[:notice] = &quot;Moderated comment by &lt;em&gt;#{@comment.author}&lt;/em&gt; for post &lt;a href=\&quot;#{post_path(post)}\&quot;&gt;#{post.title}&lt;/a&gt;.&quot;
+        flash[:notice] = &quot;Moderated comment by &lt;em&gt;#{@comment.author}&lt;/em&gt; for post &lt;a href=\&quot;#{permalink_path(post.permalink)}\&quot;&gt;#{post.title}&lt;/a&gt;.&quot;
         redirect_to moderations_url 
       end
       format.js { head :ok }
@@ -27,7 +27,7 @@ class ModerationsController &lt; ApplicationController
       @comment.destroy
       format.html do
         post = @comment.post
-        flash[:notice] = &quot;Deleted comment by &lt;em&gt;#{@comment.author}&lt;/em&gt; for post &lt;a href=\&quot;#{post_path(post)}\&quot;&gt;#{post.title}&lt;/a&gt;.&quot;
+        flash[:notice] = &quot;Deleted comment by &lt;em&gt;#{@comment.author}&lt;/em&gt; for post &lt;a href=\&quot;#{permalink_path(post.permalink)}\&quot;&gt;#{post.title}&lt;/a&gt;.&quot;
         redirect_to moderations_url 
       end
       format.js   { head :ok }</diff>
      <filename>app/controllers/moderations_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 &lt;%= error_messages_for :comment %&gt;
-&lt;% form_for(:comment,:url =&gt; post_comments_path(@post), :html =&gt; {:id =&gt; &quot;post_new_comment&quot;}) do |f| %&gt;
+&lt;% form_for(:comment,:url =&gt; post_comments_path(@post.permalink), :html =&gt; {:id =&gt; &quot;post_new_comment&quot;}) do |f| %&gt;
   &lt;%= render :partial =&gt; 'comments/comment_form', :locals =&gt; {:f =&gt; f} %&gt;
   &lt;input type=&quot;button&quot; id=&quot;preview_button&quot; value=&quot;Preview Comment&quot; /&gt;
 </diff>
      <filename>app/views/comments/new.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -12,7 +12,7 @@ ActionController::Routing::Routes.draw do |map|
 
   map.permalink ':year/:month/:day/:slug', :controller =&gt; 'posts', :action =&gt; 'show', :conditions =&gt; {:method =&gt; :get} 
   map.resources :posts do |post|
-    post.resource :comments
+    post.resource :comments, :path_prefix =&gt; ':year/:month/:day/:slug'
   end
 
   map.root :controller =&gt; 'posts'</diff>
      <filename>config/routes.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f463ece648e8d23a096f33f5d7d926cb4f3c4a71</id>
    </parent>
  </parents>
  <author>
    <name>mrchucho</name>
    <email>mrchucho@mrchucho.net</email>
  </author>
  <url>http://github.com/mrchucho/bbot/commit/f377e9216fbd4444e42a9f690d50a3fe8c7a3f00</url>
  <id>f377e9216fbd4444e42a9f690d50a3fe8c7a3f00</id>
  <committed-date>2008-11-12T11:37:07-08:00</committed-date>
  <authored-date>2008-11-12T11:37:07-08:00</authored-date>
  <message>Updated Comment URLs to use the same scheme as Post URLs (i.e. :year/:month/:day/:slug).</message>
  <tree>f2d7f766ac559613e21f83c56aad96694dfd8037</tree>
  <committer>
    <name>mrchucho</name>
    <email>mrchucho@mrchucho.net</email>
  </committer>
</commit>
