<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,4 +3,6 @@
     %label{:for =&gt; &quot;page_meta_tags&quot;}
       Tags
   %td.field
-    = f.text_field :meta_tags, :value =&gt; @page.tag_list, :class =&gt; 'textbox', :maxlength =&gt; 160
\ No newline at end of file
+    = f.text_field :meta_tags, :value =&gt; @page.tag_list, :class =&gt; 'textbox', :maxlength =&gt; 160
+    - unless model.errors.on_base.nil?
+      %span.error= model.errors.on_base
\ No newline at end of file</diff>
      <filename>app/views/admin/pages/_tag_field.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,10 @@
 TaggingMethods = Proc.new do
   
+  def valid_with_tags?
+    return (self.errors.empty? &amp;&amp; valid_without_tags?)
+  end
+  alias_method_chain :valid?, :tags
+  
   def tag_with tags
     self.save if self.new_record?
     # just skip the whole method if the tags string hasn't changed
@@ -12,7 +17,9 @@ TaggingMethods = Proc.new do
       begin
         tag = MetaTag.find_or_initialize_by_name(tag.strip.squeeze(&quot; &quot;))
         meta_tags &lt;&lt; tag unless meta_tags.include?(tag)
-      rescue ActiveRecord::StatementInvalid =&gt; e  
+      rescue ActiveRecord::RecordInvalid =&gt; e
+        errors.add_to_base(&quot;Tags can not contain special characters&quot;)
+      rescue ActiveRecord::StatementInvalid =&gt; e
         # With SQLite3 - a duplicate tagging will result in the following message:
         # SQLite3::SQLException: SQL logic error or missing database: INSERT INTO taggings (&quot;meta_tag_id&quot;, &quot;taggable_type&quot;, &quot;taggable_id&quot;) VALUES(11, 'Page', 74)
         # raise unless e.to_s =~ /duplicate/i</diff>
      <filename>lib/tagging_methods.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0efa0180ff35909381f17c36505524f2f5360ce6</id>
    </parent>
  </parents>
  <author>
    <name>Benny Degezelle</name>
    <email>benny@gorilla-webdesign.be</email>
  </author>
  <url>http://github.com/jomz/radiant-tags-extension/commit/82cb81fa23f6c589e69ff84e8b7a9af170286949</url>
  <id>82cb81fa23f6c589e69ff84e8b7a9af170286949</id>
  <committed-date>2009-09-22T13:13:07-07:00</committed-date>
  <authored-date>2009-09-22T13:13:07-07:00</authored-date>
  <message>display error msg on meta_tags field when tags were invalid</message>
  <tree>073d0f495193cedf81496611fc5fee476d9b4715</tree>
  <committer>
    <name>Benny Degezelle</name>
    <email>benny@gorilla-webdesign.be</email>
  </committer>
</commit>
