<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,5 @@
 - unless element.revisions.empty?
-  - form_tag send(&quot;edit_admin_#{element.class.to_s.underscore}_path&quot;, element), :method =&gt; :get do
+  - form_tag send(&quot;edit_admin_#{(element.is_a?(Page) ? Page : element.class).to_s.underscore}_path&quot;, element), :method =&gt; :get do
     #revision
       %label{ :for =&gt; &quot;revision&quot; }
         %strong Show Revision</diff>
      <filename>app/views/admin/_select_revision.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -19,6 +19,16 @@ describe Admin::PagesController do
     response.should have_tag(&quot;#page_title[value=Uga-buga!]&quot;)
   end
   
+  it &quot;should get edit page with special Page type&quot; do
+    page = FileNotFoundPage.create!(valid_page_params.merge(
+        :title =&gt; &quot;404&quot;, :slug =&gt; '404', :parts =&gt; [{:name =&gt; 'body', :content =&gt; &quot;not found&quot;}]
+    ))
+    get :edit, :id =&gt; page.id
+    response.should be_success 
+    response.should render_template(&quot;edit&quot;)
+    response.should have_tag(&quot;#page_title[value=#{page.title}]&quot;)
+  end
+  
   it &quot;should get edit page with last revision if given revision is not existed&quot; do
     get :edit, :id =&gt; @page.id, :revision =&gt; 16
     response.should be_success </diff>
      <filename>spec/controllers/page_controller_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>10dcb3b0f2bd109c4ca67cca398d4e7ba8078f13</id>
    </parent>
  </parents>
  <author>
    <name>Anton Astashov</name>
    <email>anton@localhost.(none)</email>
  </author>
  <url>http://github.com/jeffrydegrande/page_versioning/commit/83435c6f4286af0599c1b2b0a0a36cac4f912c37</url>
  <id>83435c6f4286af0599c1b2b0a0a36cac4f912c37</id>
  <committed-date>2009-03-05T22:50:06-08:00</committed-date>
  <authored-date>2009-03-05T22:50:06-08:00</authored-date>
  <message>Fixed error with selecting revision of special types of Page (thanks to p8!)</message>
  <tree>48b2d278e86dc0c823aa8cf04251713cd0be856d</tree>
  <committer>
    <name>Anton Astashov</name>
    <email>anton@localhost.(none)</email>
  </committer>
</commit>
