<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,7 +1,3 @@
-h1. BIG CHANGES!
-
-RESTful_ACL has recently been overhauled (v2.0), please read this carefully for changes!
-
 h2. RESTful_ACL
 
 A Ruby on Rails plugin that provides fine grained access control through the MVC stack to RESTful resources in a Ruby on Rails 2.0+ application. Authorization is as simple as true or false.
@@ -16,30 +12,27 @@ RESTful_ACL requires the super amazing &quot;RESTful_Authentication&quot;:https://github.c
 
 h3. How to Install
 
+Install the RESTful_ACL gem:
 &lt;pre&gt;sudo gem install mdarby-restful_acl -s http://gems.github.com&lt;/pre&gt;
 
-And add the gem to your environment.rb file as thus:
-&lt;pre&gt;
-# In environment.rb:
-config.gem &quot;mdarby-restful_acl&quot;, :lib =&gt; 'restful_acl_controller'
-&lt;/pre&gt;
+Add the gem to your environment.rb file as thus:
+&lt;pre&gt;config.gem &quot;mdarby-restful_acl&quot;, :lib =&gt; 'restful_acl_controller'&lt;/pre&gt;
 
 RESTful_ACL requires two named routes: &quot;error&quot; and &quot;denied&quot;. Add the following to your routes.rb file:
 &lt;pre&gt;
-map.error '/error', :controller =&gt; '&lt;some_controller&gt;', :action =&gt; '&lt;error_action&gt;'
-map.denied '/denied', :controller =&gt; '&lt;some_controller&gt;', :action =&gt; '&lt;denied_action&gt;'
+  map.error '/error', :controller =&gt; 'some_controller', :action =&gt; 'error_action'
+  map.denied '/denied', :controller =&gt; 'some_controller', :action =&gt; 'denied_action'
 &lt;/pre&gt;
 
 h3. How to Use
 
 h4. Controllers
 
-Add this before_filter into any controller that you'd like to restrict access to (or application.rb for your entire app).
-&lt;pre&gt;before_filter :has_permission?&lt;/pre&gt;
+Add @before_filter :has_permission?@ into any controller that you'd like to restrict access to (or application_controller.rb for your entire app).
 
 h4. Models
 
-Define a parent resource (if one exists) by using the &lt;b&gt;logical_parent&lt;/b&gt; method, and define the following five methods in the model of every resource you'd like to restrict access to. The five methods can contain anything you'd like so long as they return a boolean true or false. This allows you to define your User's roles any way you wish. 
+Define a parent resource (if one exists) by using the @logical_parent@ method, and define the following five methods in the model of every resource you'd like to restrict access to. The five methods can contain anything you'd like so long as they return a boolean true or false. This allows you to define your User's roles any way you wish. 
 
 &lt;pre&gt;
   class Issue &lt; ActiveRecord::Base
@@ -69,19 +62,18 @@ Define a parent resource (if one exists) by using the &lt;b&gt;logical_parent&lt;/b&gt; meth
     def is_deletable_by(user, parent = nil)
 
     end
-    
   end
 &lt;/pre&gt;
 
 h4. View Helpers
 
-There are five view helpers also included in RESTful_ACL: #indexable, #creatable, #readable, #updatable, and #deletable. These enable you to do nifty things like:
+There are five view helpers also included in RESTful_ACL: @#indexable@, @#creatable@, @#readable@, @#updatable@, and @#deletable@. These enable you to do nifty things like:
 &lt;pre&gt;
-&lt;%= link_to &#8216;Foo Index&#8217;, foos_path if indexable %&gt;
-&lt;%= link_to 'Edit Foo', edit_foo_path(@foo) if updatable(@foo) %&gt;
-&lt;%= link_to 'Create Foo', new_foo_path if creatable %&gt;
-&lt;%= link_to 'View Foo', foo_path(@foo) if readable(@foo) %&gt;
-&lt;%= link_to 'Delete Foo', foo_path(@foo) if deletable(@foo), :method =&gt; :destroy %&gt;
+  &lt;%= link_to &#8216;Foo Index&#8217;, foos_path if indexable %&gt;
+  &lt;%= link_to 'Edit Foo', edit_foo_path(@foo) if updatable(@foo) %&gt;
+  &lt;%= link_to 'Create Foo', new_foo_path if creatable %&gt;
+  &lt;%= link_to 'View Foo', foo_path(@foo) if readable(@foo) %&gt;
+  &lt;%= link_to 'Delete Foo', foo_path(@foo) if deletable(@foo), :method =&gt; :destroy %&gt;
 &lt;/pre&gt;
 
 h3. Huh? Here's an example
@@ -119,55 +111,54 @@ Let's say that you have two resources: Project and Issue. A Project has many Iss
 
 h3. Admins RULE!
 
-RESTful_ACL grants global access to all actions to site administrators. To enable this, make sure that your User model defines an &quot;is_admin?&quot; method *and/or* an 'is_admin' attribute. If the current_user.is_admin? returns true, access will be granted automatically.
+RESTful_ACL grants global access to all actions to site administrators. To enable this, make sure that your User model defines an @is_admin?@ method *and/or* an @is_admin@ attribute. If the @current_user.is_admin?@ returns true, access will be granted automatically.
 
 h3. How to Test
 
 I normally do something along these lines in RSpec:
 &lt;pre&gt;
-describe &quot;Issue&quot; do
-  before do
-    @project = mock_model(Project)
-    @author  = mock_model(User, :projects =&gt; [@project])
+  describe &quot;Issue&quot; do
+    before do
+      @project = mock_model(Project)
+      @author  = mock_model(User, :projects =&gt; [@project])
     
-    @issue = Issue.factory_girl(:issue, :author =&gt; @author, :project =&gt; @project)
-  end
+      @issue = Issue.factory_girl(:issue, :author =&gt; @author, :project =&gt; @project)
+    end
 
-  it &quot;should be modifiable by the author when the Project is active&quot; do
-    @project.stub!(:is_active? =&gt; true)
-    @issue.is_updatable_by(@author, @project).should be_true
-  end
+    it &quot;should be modifiable by the author when the Project is active&quot; do
+      @project.stub!(:is_active? =&gt; true)
+      @issue.is_updatable_by(@author, @project).should be_true
+    end
 
-  it &quot;should be deletable by the author&quot; do
-    @issue.is_deletable_by(@author, @project).should be_true
-  end
+    it &quot;should be deletable by the author&quot; do
+      @issue.is_deletable_by(@author, @project).should be_true
+    end
 
-  it &quot;should be readable by those assigned to the Project&quot; do
-    Issue.is_readable_by(@author, @project).should be_true
-  end
+    it &quot;should be readable by those assigned to the Project&quot; do
+      Issue.is_readable_by(@author, @project).should be_true
+    end
 
-  it &quot;should be creatable by those assigned to the Project&quot; do
-    Issue.is_creatable_by(@author, @project).should be_true
+    it &quot;should be creatable by those assigned to the Project&quot; do
+      Issue.is_creatable_by(@author, @project).should be_true
+    end
   end
-end
 &lt;/pre&gt;
 
 h3. Caveats
 
-Polymorphic resources (Comments, Attachments, etc) are a bit iffy for obvious reasons.
 RESTful_ACL doesn't work with nested singleton resources. Wha? Yeah. Those are things in routes.rb like:
 
 &lt;pre&gt;
-# Note the singular forms in 'user.resource :profile'
-map.resources :users do |user|
-  user.resource :profile
-end
+  # Note the singular forms in 'user.resource :profile'
+  map.resources :users do |user|
+    user.resource :profile
+  end
 &lt;/pre&gt;
 
-In these situations I normally skip permission checking altogether as a Profile will always be mapped to the currently logged in User, regardless of the params[:user_id] passed in. You don't trust those either right? Good.
+In these situations I normally skip permission checking altogether as a Profile will always be mapped to the currently logged in User, regardless of the @params[:user_id]@ passed in. You don't trust those either right? Good.
 
 h3. About the Author
 
-My name is Matt Darby. I'm a 29 year old professional Web Developer and IT Manager. I am the IT Manager and Lead Web Developer at &quot;Dynamix Engineering&quot;:http://dynamix-ltd.com and hold a MSCS from &quot;Franklin University&quot;:http://franklin.edu in Columbus, OH.
+My name is &quot;Matt Darby.&quot;:http://blog.matt-darby.com I&#8217;m an IT Manager and pro-web-dev at for &quot;Dynamix Engineering&quot;:http://dynamix-ltd.com and hold a Master&#8217;s Degree in Computer Science from &quot;Franklin University&quot;:http://www.franklin.edu in sunny &quot;Columbus, OH.&quot;:http://en.wikipedia.org/wiki/Columbus,_Ohio
 
-Feel free to check out my &quot;blog&quot;:http://blog.matt-darby.com or to &quot;recommend me&quot;:http://www.workingwithrails.com/recommendation/new/person/10908-matt-darby
\ No newline at end of file
+Feel free to check out my &quot;blog&quot;:http://blog.matt-darby.com or &quot;recommend me&quot;:http://www.workingwithrails.com/person/10908-matt-darby
\ No newline at end of file</diff>
      <filename>README.textile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ccea5efd0b39a78a63595400e168c179c40d69ad</id>
    </parent>
  </parents>
  <author>
    <name>Matt Darby</name>
    <email>matt@matt-darby.com</email>
  </author>
  <url>http://github.com/mdarby/restful_acl/commit/d0a8dcfda3ec7ede3f560a62103f0dd250d34b50</url>
  <id>d0a8dcfda3ec7ede3f560a62103f0dd250d34b50</id>
  <committed-date>2009-03-29T07:07:35-07:00</committed-date>
  <authored-date>2009-03-29T07:07:35-07:00</authored-date>
  <message>Reformatted README</message>
  <tree>01b34bb1e3c83f3b38642526eec474a9deb0f318</tree>
  <committer>
    <name>Matt Darby</name>
    <email>matt@matt-darby.com</email>
  </committer>
</commit>
