<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>app/views/admin/page_attributes/_page_attribute_row.haml</filename>
    </added>
    <added>
      <filename>app/views/admin/page_attributes/_simple_boolean.haml</filename>
    </added>
    <added>
      <filename>app/views/admin/page_attributes/_simple_date_time.haml</filename>
    </added>
    <added>
      <filename>app/views/admin/page_attributes/_simple_integer.haml</filename>
    </added>
    <added>
      <filename>app/views/admin/page_attributes/_simple_string.haml</filename>
    </added>
    <added>
      <filename>app/views/admin/page_attributes/_simple_text.haml</filename>
    </added>
    <added>
      <filename>spec/controllers/page_attributes_controller_spec.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,10 @@
 class Admin::PageAttributesController &lt; ApplicationController
-  def form
-    page_attribute = PageAttribute.new(params[:page_attribute])
-    render(:partial =&gt; 'page_attribute_row', :object =&gt; page_attribute, :layout =&gt; false)
+  def create
+    respond_to do |format|
+      format.js do
+        @page_attribute = PageAttribute.new(params[:page_attribute])
+        render(:partial =&gt; 'page_attribute_row', :object =&gt; @page_attribute, :layout =&gt; false)
+      end
+    end
   end
 end</diff>
      <filename>app/controllers/admin/page_attributes_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 #add-page-attribute-popup.popup{:style =&gt; &quot;display: none&quot;}
   #page-attribute-busy.busy{:style =&gt; &quot;display: none&quot;}= image 'spinner.gif'
   %h3 Add Attribute
-  - form_remote_tag(:url =&gt; admin_page_attribute_form_url, :update =&gt; &quot;page-attributes-fieldset&quot;, :position =&gt; :bottom, :loading =&gt; 'page-attribute_loading()', :success =&gt; 'page_attribute_added()', :condition =&gt; 'valid_page_attribute_name()', :html =&gt; {:method =&gt; :get}) do
+  - form_remote_tag(:url =&gt; admin_page_attributes_path, :update =&gt; &quot;page-attributes-fieldset&quot;, :position =&gt; :bottom, :loading =&gt; 'page-attribute_loading()', :success =&gt; 'page_attribute_added()', :condition =&gt; 'valid_page_attribute_name()', :html =&gt; {:method =&gt; :post}) do
     %div
       = hidden_field_tag 'index', @index, :id =&gt; 'page-attribute-index-field'
       = text_field_tag &quot;page_attribute[name]&quot;, &quot;&quot;, :id =&gt; 'page-attribute-name-field', :maxlength =&gt; 100</diff>
      <filename>app/views/admin/page_attributes/_add_page_attribute_popup.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,9 @@ class PageAttributesExtension &lt; Radiant::Extension
   url &quot;http://radiantcms.org&quot;
   
   define_routes do |map|
-    map.admin_page_attribute_form 'admin/page_attributes/form', :controller =&gt; 'admin/page_attributes', :action =&gt; &quot;form&quot;
+    map.admin_page_attributes 'admin/page_attributes',
+                                 :controller =&gt; 'admin/page_attributes',
+                                 :action =&gt; &quot;create&quot;, :conditions =&gt; { :method =&gt; :post }
   end
   
   def activate</diff>
      <filename>page_attributes_extension.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>app/views/admin/page_attributes/_page_attribute_row.html.haml</filename>
    </removed>
    <removed>
      <filename>app/views/admin/page_attributes/_simple_boolean.html.haml</filename>
    </removed>
    <removed>
      <filename>app/views/admin/page_attributes/_simple_date_time.html.haml</filename>
    </removed>
    <removed>
      <filename>app/views/admin/page_attributes/_simple_integer.html.haml</filename>
    </removed>
    <removed>
      <filename>app/views/admin/page_attributes/_simple_string.html.haml</filename>
    </removed>
    <removed>
      <filename>app/views/admin/page_attributes/_simple_text.html.haml</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>00b0d7ca323d68d5e7df2f92f8ce18c89d182e88</id>
    </parent>
  </parents>
  <author>
    <name>Josh French</name>
    <email>josh@vitamin-j.com</email>
  </author>
  <url>http://github.com/jfrench/radiant-page-attributes/commit/c88e86eae0566371fae64fa89237163c52b4bbb1</url>
  <id>c88e86eae0566371fae64fa89237163c52b4bbb1</id>
  <committed-date>2008-11-02T09:24:06-08:00</committed-date>
  <authored-date>2008-11-02T09:24:06-08:00</authored-date>
  <message>Make page attributes controller more representational; allow partials to render under any format [#1]</message>
  <tree>08a6a6355cdb82852047767408442675a43cadb9</tree>
  <committer>
    <name>Josh French</name>
    <email>josh@vitamin-j.com</email>
  </committer>
</commit>
