<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -43,12 +43,13 @@ class Admin::CommentsController &lt; ApplicationController
       TextFilter.descendants.each do |filter|
         @comment.content_html = filter.filter(@comment.content) if filter.filter_name == @comment.filter_id
       end
-      @comment.update_attributes(params[:comment])
-      Radiant::Cache.clear
+      @comment.update_attributes!(params[:comment])
+      clear_cache
       flash[:notice] = &quot;Comment Saved&quot;
       redirect_to :action =&gt; :index
     rescue Exception =&gt; e
-      flash[:notice] = &quot;There was an error saving the comment&quot;
+      flash[:notice] = &quot;There was an error saving the comment: #{e.message}&quot;
+      render :action =&gt; :edit
     end
   end
 </diff>
      <filename>app/controllers/admin/comments_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,44 +1,36 @@
-&lt;div id=&quot;comment_form_container&quot;&gt;
-
-  &lt;table border=&quot;0&quot;&gt;
-    
-    &lt;tr&gt;
-      &lt;th&gt;&lt;label for=&quot;comment_author&quot;&gt;Comment Author Name&lt;/label&gt;&lt;/th&gt;
-      &lt;td&gt;&lt;%= f.text_field :author, :class =&gt; &quot;regular&quot; %&gt;&lt;/td&gt;
-    &lt;/tr&gt;
-
-    &lt;tr&gt;
-      &lt;th&gt;&lt;label for=&quot;comment_author_url&quot;&gt;Comment Author URL&lt;/label&gt;&lt;/th&gt;
-      &lt;td&gt;&lt;%= f.text_field :author_url, :class =&gt; &quot;regular&quot; %&gt;&lt;/td&gt;
-    &lt;/tr&gt;
-
-    &lt;tr&gt;
-      &lt;th&gt;&lt;label for=&quot;comment_author_email&quot;&gt;Comment Author Email&lt;/label&gt;&lt;/th&gt;
-      &lt;td&gt;&lt;%= f.text_field :author_email, :class =&gt; &quot;regular&quot; %&gt;&lt;/td&gt;
-    &lt;/tr&gt;
-    
-    &lt;tr&gt;
-      &lt;th&gt;&lt;label for=&quot;comment&quot;&gt;Comment&lt;/label&gt;&lt;/th&gt;
-      &lt;td&gt;&lt;%= f.text_area :content, :rows =&gt; 10, :class =&gt; &quot;regular&quot; %&gt;&lt;/td&gt;
-    &lt;/tr&gt;
-    
-    &lt;tr&gt;
-      &lt;th&gt;
-        &lt;label for=&quot;comment_filter_id&quot;&gt;Filter&lt;/label&gt;
-      &lt;/th&gt;
-      &lt;td&gt;
-        &lt;%= f.select :filter_id, [['&lt;none&gt;', '']] + TextFilter.descendants.map { |s| s.filter_name }.sort %&gt;
-        
-        
-      &lt;/td&gt;
-    &lt;/tr&gt;
-    
-  &lt;/table&gt;  
-  
-  &lt;%= submit_tag(&quot;Save comment&quot;, :class =&gt; &quot;button&quot;, :id =&gt; &quot;comment_submit_button&quot;) %&gt; 
-  
-  &lt;%= f.hidden_field :page_id %&gt;
-  
-
-
+&lt;% if Comment.spam_filter == SimpleSpamFilter %&gt;
+  &lt;div style=&quot;display:none&quot;&gt;
+    &lt;%= f.hidden_field :spam_answer, :value =&gt; &quot;hemidemisemiquaver&quot; %&gt;
+    &lt;%= f.hidden_field :valid_spam_answer, :value =&gt; Digest::MD5.hexdigest(&quot;hemidemisemiquaver&quot;) %&gt;
+  &lt;/div&gt;
+&lt;% end %&gt;
+&lt;div id=&quot;comment_form_container&quot; class=&quot;form-area&quot;&gt;
+  &lt;div class=&quot;row&quot;&gt;
+    &lt;p&gt;
+      &lt;label for=&quot;comment_author&quot;&gt;Author&lt;/label&gt;&lt;br/&gt;
+      &lt;%= f.text_field :author %&gt;
+    &lt;/p&gt;
+    &lt;p&gt;
+      &lt;label for=&quot;comment_author_url&quot;&gt;URL&lt;/label&gt;&lt;br/&gt;
+      &lt;%= f.text_field :author_url %&gt;
+    &lt;/p&gt;
+  &lt;/div&gt;
+  &lt;br style=&quot;clear: both&quot; /&gt;
+  &lt;p&gt;
+    &lt;label for=&quot;comment_author_email&quot;&gt;Email&lt;/label&gt;&lt;br/&gt;
+    &lt;%= f.text_field :author_email %&gt;
+  &lt;/p&gt;
+  &lt;p&gt;
+    &lt;label for=&quot;comment_content&quot;&gt;Comment&lt;/label&gt;&lt;br /&gt;
+    &lt;%= f.text_area :content, :rows =&gt; 10, :cols =&gt; 72, :class =&gt; &quot;textarea&quot;%&gt;
+  &lt;/p&gt;
+  &lt;p&gt;
+    &lt;label for=&quot;comment_filter_id&quot;&gt;Filter&lt;/label&gt;
+    &lt;%= f.select :filter_id, [['&lt;none&gt;', '']] + TextFilter.descendants.map { |s| s.filter_name }.sort %&gt;
+  &lt;/p&gt;
 &lt;/div&gt;
+&lt;p class=&quot;buttons&quot;&gt;
+  &lt;%= save_model_button(@comment) %&gt;
+  or
+  &lt;%= link_to &quot;Cancel&quot;, :back %&gt;
+&lt;/p&gt;
\ No newline at end of file</diff>
      <filename>app/views/admin/comments/_form.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
-&lt;h1&gt;Edit comment by &lt;%= @comment.author %&gt;&lt;/h1&gt;
+&lt;h1&gt;Edit Comment on &quot;&lt;%= escape_once(@comment.page.title) %&gt;&quot;&lt;/h1&gt;
 
-&lt;% form_for :comment, @comment, :url =&gt; admin_comment_path(@comment), :html =&gt; {:method =&gt; :put} do |f| %&gt;
+&lt;% form_for [:admin, @comment] do |f| %&gt;
   &lt;%= render :partial =&gt; &quot;form&quot;, :locals =&gt; {:f =&gt; f} %&gt;
 &lt;% end %&gt;</diff>
      <filename>app/views/admin/comments/edit.rhtml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>789e28ffb58461524704a650e145ec60693567b9</id>
    </parent>
  </parents>
  <author>
    <name>Sean Cribbs</name>
    <email>seancribbs@gmail.com</email>
  </author>
  <url>http://github.com/artofmission/radiant-comments/commit/eb1dea616d9e1de7914b5dbe6d477812785d85d0</url>
  <id>eb1dea616d9e1de7914b5dbe6d477812785d85d0</id>
  <committed-date>2009-08-20T09:54:27-07:00</committed-date>
  <authored-date>2009-08-20T09:54:27-07:00</authored-date>
  <message>Improve comment editing UI, allow saving when using simple spam filter.</message>
  <tree>596454cc11b6796fe51fe57cd7ac8c29551143e3</tree>
  <committer>
    <name>Sean Cribbs</name>
    <email>seancribbs@gmail.com</email>
  </committer>
</commit>
