<?xml version="1.0" encoding="UTF-8"?>
<commits type="array">
  <commit>
    <parents type="array">
      <parent>
        <id>6c080a74a1e05b4298894eb662a2b7ace8c6320b</id>
      </parent>
    </parents>
    <author>
      <name>Ian White</name>
      <email>ian.w.white@gmail.com</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/472440a1f6bb853d0f6b92120801a79049161a59</url>
    <id>472440a1f6bb853d0f6b92120801a79049161a59</id>
    <committed-date>2009-12-20T01:56:57-08:00</committed-date>
    <authored-date>2009-12-20T01:56:57-08:00</authored-date>
    <message>resource methods now in mixin to make overriding them easier</message>
    <tree>f1beac490a67af69fd7a870c60cc1727c963f823</tree>
    <committer>
      <name>Ian White</name>
      <email>ian.w.white@gmail.com</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>b655ebefb729031d77fa3849b8c03221e8963dc3</id>
      </parent>
    </parents>
    <author>
      <name>Ian White</name>
      <email>ian.w.white@gmail.com</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/e55f0c3a1b88a01b41b6f369263a6551216ef131</url>
    <id>e55f0c3a1b88a01b41b6f369263a6551216ef131</id>
    <committed-date>2009-09-18T10:19:13-07:00</committed-date>
    <authored-date>2009-09-18T10:19:13-07:00</authored-date>
    <message>RC is now more relaxed regarding 'NoRecognisedRoute', if the route can't be found, or the controller was invoked by the defautl route, the enclosing resources are constructed form '_id' params.</message>
    <tree>847f8cd32def97609db7b7dd388d81fde37e41f4</tree>
    <committer>
      <name>Ian White</name>
      <email>ian.w.white@gmail.com</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>dcb0b32c5ca48836e34569fa6c56e835005d7007</id>
      </parent>
    </parents>
    <author>
      <name>Ian White</name>
      <email>ian.w.white@gmail.com</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/bfa9f69dce873e741d2a457eda65f007bed2c21c</url>
    <id>bfa9f69dce873e741d2a457eda65f007bed2c21c</id>
    <committed-date>2009-09-18T08:49:13-07:00</committed-date>
    <authored-date>2009-09-18T08:49:13-07:00</authored-date>
    <message>Re-order route declarations, so as to account for new route matching behaviour in Rails 2.3/3 (see #3198 on rails lighthouse)</message>
    <tree>4b5cd999ca03623c908c130557a3dc150ee348c1</tree>
    <committer>
      <name>Ian White</name>
      <email>ian.w.white@gmail.com</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>749122598953bc5c0f709e12d5f181b67da5af9e</id>
      </parent>
    </parents>
    <author>
      <name>Ian White</name>
      <email>ian.w.white@gmail.com</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/dcb0b32c5ca48836e34569fa6c56e835005d7007</url>
    <id>dcb0b32c5ca48836e34569fa6c56e835005d7007</id>
    <committed-date>2009-09-18T08:25:48-07:00</committed-date>
    <authored-date>2009-09-18T08:25:48-07:00</authored-date>
    <message>Explicilty clear routes in spec app to prevent default catch-all route being defined at the top.  This causes havoc with new Rails 2.3/3 route mapping behaviour</message>
    <tree>8622b993f434516074348bae484918f3a418a94e</tree>
    <committer>
      <name>Ian White</name>
      <email>ian.w.white@gmail.com</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>b22c11347700630914dbcd8755202e4081f9ac88</id>
      </parent>
    </parents>
    <author>
      <name>Tom ten Thij</name>
      <email>git@tomtenthij.nl</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/54cea4aa6f642db33be17d49bebb5c2ebf94198c</url>
    <id>54cea4aa6f642db33be17d49bebb5c2ebf94198c</id>
    <committed-date>2009-06-27T10:03:56-07:00</committed-date>
    <authored-date>2009-05-05T12:17:03-07:00</authored-date>
    <message>Enable resources_controller to handle dynamic segments that do not have a corresponding static segment</message>
    <tree>753efa13c930d5984f120adaba580dea0447bdc4</tree>
    <committer>
      <name>Ian White</name>
      <email>ian.w.white@gmail.com</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>0736202d7ff508fed40bbb186fd774ed7e3b44ad</id>
      </parent>
    </parents>
    <author>
      <name>Ian White</name>
      <email>ian.w.white@gmail.com</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/ee4463f46798a65d519c785fe2ed4304ff2a1f77</url>
    <id>ee4463f46798a65d519c785fe2ed4304ff2a1f77</id>
    <committed-date>2009-02-13T05:08:54-08:00</committed-date>
    <authored-date>2009-02-13T05:08:54-08:00</authored-date>
    <message>Add new formatted catch all route to test app, which has been backported to all rails 2.x</message>
    <tree>db0c1b491859c0a12fae5a93891a27eb33d86aab</tree>
    <committer>
      <name>Ian White</name>
      <email>ian.w.white@gmail.com</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>4b31d14ed2bcdde7f1b109983afa1388df60e957</id>
      </parent>
    </parents>
    <author>
      <name>Ian White</name>
      <email>ian.w.white@gmail.com</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/4e19116daaf7730b316752d70b18b931379606d6</url>
    <id>4e19116daaf7730b316752d70b18b931379606d6</id>
    <committed-date>2008-09-13T22:26:15-07:00</committed-date>
    <authored-date>2008-09-13T22:26:15-07:00</authored-date>
    <message>Remove setting of RC action modules in specs, so we can test compatibility with other plugins (such as response_for_rc)</message>
    <tree>a23f42b1a8a10cb383debdf6373e9a9db02b053b</tree>
    <committer>
      <name>Ian White</name>
      <email>ian.w.white@gmail.com</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>c21f35c35ef71576c99d412bc562ab10278c652b</id>
      </parent>
    </parents>
    <author>
      <name>Ian White</name>
      <email>ian.w.white@gmail.com</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/ceaf1b96a2ac9eb82250307029f36aed063326e0</url>
    <id>ceaf1b96a2ac9eb82250307029f36aed063326e0</id>
    <committed-date>2008-09-13T12:35:48-07:00</committed-date>
    <authored-date>2008-09-13T12:31:16-07:00</authored-date>
    <message>The reason for the reversion in c21f35c has been fixed.  Thanks Jason Lee for the bug report.

The problem was that I had changed resource_saved?'s behaviour to *not* saving the model if it had
already been saved.  In the future resource_saved? will be deprecated, but not yet.

BTW.  All of these changes to resource_saved? behaviour is aimed at making RC drop in compatible with
rspec's generated controller specs (try rake spec:generate).

To do that I need the default update action to use :update_attributes. This meant that the old strategy
of keeping track of saves by using save_resource wont work.  Instead, we keep track by looking at the
AR's state (see lib/ardes/active_record/saved.rb) which is a far better solution anyway.

Squashed commit of the following:

commit f8a589f9b3711140fa7e125a42681acc1ad97e10
Author: Ian White &lt;ian.w.white@gmail.com&gt;
Date:   Sun Sep 14 05:21:23 2008 +1000

    Docfixes, CHANGELOG, SPECDOC

commit e670fd2e18678d94292bc684e57f8bf64a2e2dc9
Author: Ian White &lt;ian.w.white@gmail.com&gt;
Date:   Sun Sep 14 05:09:24 2008 +1000

    Fixed logic error in AR.saved?

commit b3e2838e1515503820e49eaf7853099df33a0d8e
Author: Ian White &lt;ian.w.white@gmail.com&gt;
Date:   Sun Sep 14 05:05:29 2008 +1000

    Adding specs for AR.saved? and AR.validation_attempted?

commit 3e649c53d06a788b5e70878b2cb7e386571fce31
Author: Ian White &lt;ian.w.white@gmail.com&gt;
Date:   Sun Sep 14 04:56:56 2008 +1000

    Fixed bug in init.rb

commit c72b1a917339b7ee94700d8eb6b6bd939ad7e4b2
Author: Ian White &lt;ian.w.white@gmail.com&gt;
Date:   Sun Sep 14 04:56:28 2008 +1000

    Fixed bug in init.rb

commit d5702c06d8d54b80dd011f79ff3d2ac782ce902e
Author: Ian White &lt;ian.w.white@gmail.com&gt;
Date:   Sun Sep 14 04:55:18 2008 +1000

    Added AR.saved? &amp; AR.validation_atempted? convenience methods.  Returned save_resource?'s behaviour to that of saving the record if it has not had save attempted

commit af11af7848811da5ca87efdd8eb678251c5bd6d5
Author: Ian White &lt;ian.w.white@gmail.com&gt;
Date:   Sat Sep 13 09:58:15 2008 +1000

    Added resource_saved? specs, and removed .first and .last for BC in specs to 2.0.x

commit 5efb59f7c0fb8be72b12b5476291e59e6af658c0
Author: Ian White &lt;ian.w.white@gmail.com&gt;
Date:   Sat Sep 13 09:57:30 2008 +1000

    Added resource_saved? specs, and removed .first and .last for BC in specs to 2.0.x

commit 8b73130de97ab87369ec395be4ee696de76e773a
Author: Ian White &lt;ian.w.white@gmail.com&gt;
Date:   Sat Sep 13 09:46:52 2008 +1000

    Small fix for comments_with_models spec

commit 3a2426cd00fa945d155d4f3ebff6ccc48a7b0cf2
Author: Ian White &lt;ian.w.white@gmail.com&gt;
Date:   Sat Sep 13 09:29:26 2008 +1000

    Added specs for comments_controller which use real DB objects

commit 79a93132f6e49a556775e6508a5773686ccd6332
Author: Ian White &lt;ian.w.white@gmail.com&gt;
Date:   Sat Sep 13 06:27:51 2008 +1000

    Fixing comments with models spec

commit 05f551f5755e6db41a83dde0c9b0db99a4e168d8
Author: Ian White &lt;ian.w.white@gmail.com&gt;
Date:   Sat Sep 13 06:24:19 2008 +1000

    Added some controller specs with real models

commit 6163aba8c5315598d173cd205bc2d69286ae4271
Author: Ian White &lt;ian.w.white@gmail.com&gt;
Date:   Sat Sep 13 06:02:36 2008 +1000

    Updated 2.1.x target

commit b3c6d13a77aff7d831e136221ead8b7fa7bed4e1
Author: Ian White &lt;ian.w.white@gmail.com&gt;
Date:   Sat Sep 13 04:54:40 2008 +1000

    Add resource_saved stuff back in (2f49687, 7423cf1)

    This reverts commit c21f35c35ef71576c99d412bc562ab10278c652b.</message>
    <tree>cb74ae8c084cf0158d83259b50e76c32ae45ecfa</tree>
    <committer>
      <name>Ian White</name>
      <email>ian.w.white@gmail.com</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>2a6493b1f7b812aa4da7c1c8d6a97a9667296ba5</id>
      </parent>
    </parents>
    <author>
      <name>Ian White</name>
      <email>ian.w.white@gmail.com</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/c21f35c35ef71576c99d412bc562ab10278c652b</url>
    <id>c21f35c35ef71576c99d412bc562ab10278c652b</id>
    <committed-date>2008-09-12T03:27:32-07:00</committed-date>
    <authored-date>2008-09-12T03:27:32-07:00</authored-date>
    <message>Reverted 2f49687, 7423cf1 (save_resource and resource_saved? stuff) because of aberrant behaviour.
Will add them back in with some extra specs.  [Jason Lee]</message>
    <tree>aa15e604404d44822bb39593e15322e530e62582</tree>
    <committer>
      <name>Ian White</name>
      <email>ian.w.white@gmail.com</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>633fe459e681a3dd3c24434d431ef4f0600b45eb</id>
      </parent>
    </parents>
    <author>
      <name>Ian White</name>
      <email>ian.w.white@gmail.com</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/2f496874436e334346d4b0d8029a055c6821c93b</url>
    <id>2f496874436e334346d4b0d8029a055c6821c93b</id>
    <committed-date>2008-09-08T03:46:15-07:00</committed-date>
    <authored-date>2008-09-08T03:46:15-07:00</authored-date>
    <message>API change: save_resource and resource_saved? deprecated

  ActiveRecord::Base now has a saved? and attempted_save? method, which makes response_for much easier
  to write, and leaves less artefacts in the controller instance.

  So save_resource, and resource_saved? are now deprecated, just use resource.save, and resource.saved?
  instead.  See response_for_resources_controller if you're into response_for.</message>
    <tree>502fe0e15d5956c4aa2ff9f2bb869d86e7116540</tree>
    <committer>
      <name>Ian White</name>
      <email>ian.w.white@gmail.com</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>6a18139544d5a24778f5cb42abd991f090451557</id>
      </parent>
    </parents>
    <author>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/292121e6e05f44366424c17614a96655161117a7</url>
    <id>292121e6e05f44366424c17614a96655161117a7</id>
    <committed-date>2007-11-27T10:14:48-08:00</committed-date>
    <authored-date>2007-11-27T10:14:48-08:00</authored-date>
    <message>resources_controller: map_resource =&gt; map_enclosing_resource (former retained for BC)

git-svn-id: https://svn.ardes.com/rails_plugins/resources_controller@520 845bbffb-5c18-0410-91b3-f25c072b94c1</message>
    <tree>c796568ae0150dceb18494632128edd349531278</tree>
    <committer>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>cb161b4c1d3e1973bff368c4d3cc9f9c5635a934</id>
      </parent>
    </parents>
    <author>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/1dca7585030cf9b4fb962b8bc2a3ca70d5995f09</url>
    <id>1dca7585030cf9b4fb962b8bc2a3ca70d5995f09</id>
    <committed-date>2007-11-19T04:33:13-08:00</committed-date>
    <authored-date>2007-11-19T04:33:13-08:00</authored-date>
    <message>resources_controller: * changed :erp to :resource_path, and added :resource_method.

  This means you can connect a named route up with a REST action and also change the method

  map.activate_account '/activate/:code', :controller =&gt; 'activations', :action =&gt; 'create', :resource_path =&gt; '/activations', :resource_method =&gt; :post

  :erp retained for BC

* save_resource and resource_saved? added.  These simply save the resource and cache
  the result of that save.  This means you can use the result of the resource save in your
  response_for blocks (if you're using response_for)

  response_for :create do |format|
    if resource_saved?
      format.html {}
    else
      format.html {}
    end
  end

  def create
    self.resource = new_resource
    save_resource
  end

git-svn-id: https://svn.ardes.com/rails_plugins/resources_controller@514 845bbffb-5c18-0410-91b3-f25c072b94c1</message>
    <tree>69b86c84c64c2834f0c6fc15b45529e84529395f</tree>
    <committer>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>0387e14948fb2a36d23732482f6f86f3c987298c</id>
      </parent>
    </parents>
    <author>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/b477e9d3d24a397e89d446628f828e4e052bb356</url>
    <id>b477e9d3d24a397e89d446628f828e4e052bb356</id>
    <committed-date>2007-11-18T15:36:21-08:00</committed-date>
    <authored-date>2007-11-18T15:36:21-08:00</authored-date>
    <message>git-svn-id: https://svn.ardes.com/rails_plugins/resources_controller@507 845bbffb-5c18-0410-91b3-f25c072b94c1</message>
    <tree>8845f92f5979a086a9d0cf032625c8ab572c4d78</tree>
    <committer>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>cfa3d5e9541c5b45f4a8cfe6bc57b9f586e2d5d5</id>
      </parent>
    </parents>
    <author>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/0387e14948fb2a36d23732482f6f86f3c987298c</url>
    <id>0387e14948fb2a36d23732482f6f86f3c987298c</id>
    <committed-date>2007-11-18T05:04:32-08:00</committed-date>
    <authored-date>2007-11-18T05:04:32-08:00</authored-date>
    <message>resources_controller: added Ardes::ResourcesController.actions and
  Ardes::ResourcesController.singleton_actions accessors so you can set the
  default actions module across your app

git-svn-id: https://svn.ardes.com/rails_plugins/resources_controller@506 845bbffb-5c18-0410-91b3-f25c072b94c1</message>
    <tree>30d12f22d3d41f7a4bceab24f5d58975b61938f4</tree>
    <committer>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>dd20dcd5d8fd1344f2a2f9db935138ce736c4fd8</id>
      </parent>
    </parents>
    <author>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/cfa3d5e9541c5b45f4a8cfe6bc57b9f586e2d5d5</url>
    <id>cfa3d5e9541c5b45f4a8cfe6bc57b9f586e2d5d5</id>
    <committed-date>2007-11-18T04:56:04-08:00</committed-date>
    <authored-date>2007-11-18T04:56:04-08:00</authored-date>
    <message>resources_controller: added Ardes::ResourcesController.actions and
  Ardes::ResourcesController.singleton_actions accessors so you can set the
  default actions module across your app

git-svn-id: https://svn.ardes.com/rails_plugins/resources_controller@505 845bbffb-5c18-0410-91b3-f25c072b94c1</message>
    <tree>8845f92f5979a086a9d0cf032625c8ab572c4d78</tree>
    <committer>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>c3af167922860aef9752bcf9e5013d54c7c300bf</id>
      </parent>
    </parents>
    <author>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/6f90688ef8444dbb8e34a2ac1e5028065b123ab3</url>
    <id>6f90688ef8444dbb8e34a2ac1e5028065b123ab3</id>
    <committed-date>2007-11-14T08:05:28-08:00</committed-date>
    <authored-date>2007-11-14T08:05:28-08:00</authored-date>
    <message>resources_controller: added :erp patch, doc and specs [thanks Chris Hapgood for the initial patch]

  Use the :erp param when you are routing a non RESTful route to your rc controller
  This allows rc to load the resources using the route.

  e.g. map.home '', :controller =&gt; 'forums', :action =&gt; 'index', :erp =&gt; '/forums'



git-svn-id: https://svn.ardes.com/rails_plugins/resources_controller@499 845bbffb-5c18-0410-91b3-f25c072b94c1</message>
    <tree>a39049a7693a07edd0ac1ff3c523ab2d70119c77</tree>
    <committer>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>1b8be92d2221624a7e529c69af9a2a3a9fa8be70</id>
      </parent>
    </parents>
    <author>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/fc138623d8367f77bfcbd8a8d5a86557cde27408</url>
    <id>fc138623d8367f77bfcbd8a8d5a86557cde27408</id>
    <committed-date>2007-11-06T05:02:06-08:00</committed-date>
    <authored-date>2007-11-06T05:02:06-08:00</authored-date>
    <message>resources_controller: coverage back to 100%


git-svn-id: https://svn.ardes.com/rails_plugins/resources_controller@492 845bbffb-5c18-0410-91b3-f25c072b94c1</message>
    <tree>5602c0082a1e8f718336e51eab9f52af1d0f044c</tree>
    <committer>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>983e0df4fb1c3248ac93c3bbbf280fe57a29930e</id>
      </parent>
    </parents>
    <author>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/1b8be92d2221624a7e529c69af9a2a3a9fa8be70</url>
    <id>1b8be92d2221624a7e529c69af9a2a3a9fa8be70</id>
    <committed-date>2007-11-06T03:53:42-08:00</committed-date>
    <authored-date>2007-11-06T03:53:42-08:00</authored-date>
    <message>resources_controller: you can alias an enclosing resource with :as

  This can be useful when you have a tree like domain:

    map.resources :categories do |category|
      category.resources :categories
    end

    class CategoriesController &lt; ApplicationController
      resources_controller_for :categories
      map_resource :category, :as =&gt; :parent
    end


git-svn-id: https://svn.ardes.com/rails_plugins/resources_controller@491 845bbffb-5c18-0410-91b3-f25c072b94c1</message>
    <tree>f1ac45803b5217c0ac3294b6bedf3eb373d8931f</tree>
    <committer>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>da4772613de4fd4f8cc32c1bedf6dd194f08cb63</id>
      </parent>
    </parents>
    <author>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/983e0df4fb1c3248ac93c3bbbf280fe57a29930e</url>
    <id>983e0df4fb1c3248ac93c3bbbf280fe57a29930e</id>
    <committed-date>2007-11-06T03:01:42-08:00</committed-date>
    <authored-date>2007-11-06T03:01:42-08:00</authored-date>
    <message>resources_controller: you can now specify which actions are loaded from the actions module

    resources_controller_for :forums, :only =&gt; [:index, :show]
    resources_controller_for :forums, :actions =&gt; MyActions, :except =&gt; :destroy

  The method used to achieve this is Ardes::ResourcesController::include_actions
  which can be used in any ActionController when resources_controller is in your
  plugins directory

git-svn-id: https://svn.ardes.com/rails_plugins/resources_controller@490 845bbffb-5c18-0410-91b3-f25c072b94c1</message>
    <tree>462eeb12dfb6f455a46a72a6f8ed792175b28c09</tree>
    <committer>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>1a61e14ceca1a08ae390e8cb9092ad05dea41735</id>
      </parent>
    </parents>
    <author>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/da4772613de4fd4f8cc32c1bedf6dd194f08cb63</url>
    <id>da4772613de4fd4f8cc32c1bedf6dd194f08cb63</id>
    <committed-date>2007-11-05T13:22:30-08:00</committed-date>
    <authored-date>2007-11-05T13:22:30-08:00</authored-date>
    <message>resources_controller: specs now follow the new rails convention to use a plural controller name for singleton resources

git-svn-id: https://svn.ardes.com/rails_plugins/resources_controller@489 845bbffb-5c18-0410-91b3-f25c072b94c1</message>
    <tree>5738a668d32bf7659094b0655ce725168826dd8f</tree>
    <committer>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>e8fc191094b3a333c9b5fd501cb7b2e81078a2bc</id>
      </parent>
    </parents>
    <author>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/44316d0a6734bb3953abf1349f401d6f6bce51df</url>
    <id>44316d0a6734bb3953abf1349f401d6f6bce51df</id>
    <committed-date>2007-10-24T08:14:37-07:00</committed-date>
    <authored-date>2007-10-24T08:14:37-07:00</authored-date>
    <message>resources_controller: - :polymorphic =&gt; true is back:
      resources_controller_for :tags
      nested_in :taggable, :polymorphic =&gt; true

    This will load the enclosing resource (which can be a mapped resource) as
    @taggable as well as its default name

    The following syntax is equivalent to the above two lines:
      resources_controller_for :tags, :in =&gt; '?taggable'

    And you can specify a single wildcard '?' as well as expanding wildcards '*':
      resources_controller_for :images, :in =&gt; '?', :load_enclosing =&gt; false
      # this will work for routes like /users/1/images, /forums/2/images, /featured/images

  - test coverage is up

  - moved some of the 'friend' functionality out of Specification, as it smelt bad

git-svn-id: https://svn.ardes.com/rails_plugins/resources_controller@464 845bbffb-5c18-0410-91b3-f25c072b94c1</message>
    <tree>79858f0841e8d70e62e87f6f3919418f6a77e49b</tree>
    <committer>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>6bf23347fe3ef67eaa78e5a329306585261613e5</id>
      </parent>
    </parents>
    <author>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/e8fc191094b3a333c9b5fd501cb7b2e81078a2bc</url>
    <id>e8fc191094b3a333c9b5fd501cb7b2e81078a2bc</id>
    <committed-date>2007-10-12T04:18:46-07:00</committed-date>
    <authored-date>2007-10-12T04:18:46-07:00</authored-date>
    <message>resources_controller: added specs for when you want to find_by_(something other than id) (users,
  addresses, interests)

  Fixed a bug where the resource mapping was using name instead of segment to
  match when a map should be used (this meant mapping didn't work for non
  singleton resources)

  Thanks to Inviz &lt;invi...@gmail.com&gt; and Matt Mower &lt;matt.mo...@gmail.com&gt;
  in http://groups.google.com/group/resources_controller/browse_thread/thread/b71b2ce196a09d15
  for the bug reports


git-svn-id: https://svn.ardes.com/rails_plugins/resources_controller@453 845bbffb-5c18-0410-91b3-f25c072b94c1</message>
    <tree>995757131633537c8afe86f3e21f3813030834cb</tree>
    <committer>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>00a532fcfa1656d8fe4017197e59f72dcf13fc9a</id>
      </parent>
    </parents>
    <author>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/1c137a5a319c260a2d14cb2c081417a9bd3227b9</url>
    <id>1c137a5a319c260a2d14cb2c081417a9bd3227b9</id>
    <committed-date>2007-10-02T08:25:36-07:00</committed-date>
    <authored-date>2007-10-02T08:25:36-07:00</authored-date>
    <message>reosurces_controller: resources_controller_for can now be specified more than
  once in a controller heirachy.  The latter definition will overwrite the
  previous one, and will also 'reset' the nestings.



git-svn-id: https://svn.ardes.com/rails_plugins/resources_controller@446 845bbffb-5c18-0410-91b3-f25c072b94c1</message>
    <tree>2a2c9812eef96615eaa6136274ce86224a292ff9</tree>
    <committer>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>f6a01b46895ed4dab6f9675e447a4b8dc1425e8d</id>
      </parent>
    </parents>
    <author>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/1dada759d224ad7687a65facc686536477e2f3c8</url>
    <id>1dada759d224ad7687a65facc686536477e2f3c8</id>
    <committed-date>2007-09-18T03:43:27-07:00</committed-date>
    <authored-date>2007-09-18T03:43:27-07:00</authored-date>
    <message>resources_controller: First stab at namespace support:

  map.namespace :admin do |admin|
    admin.resources :forums
  end

  module Admin
    module Forums &lt; ApplicationController
      resources_controller_for :forums
    end
  end

  in an action:
    resources_path # =&gt; '/admin/forums'
    enclosing_resources # =&gt; []


git-svn-id: https://svn.ardes.com/rails_plugins/resources_controller@441 845bbffb-5c18-0410-91b3-f25c072b94c1</message>
    <tree>c2dabe90a14e5aa98c4f28a8e5556dd9c5a944e0</tree>
    <committer>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>cccd84d281e3aca161beaf9e2c904df952c2ab1e</id>
      </parent>
    </parents>
    <author>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/2200ba91153e72934232a16f2d6858e2af506e0e</url>
    <id>2200ba91153e72934232a16f2d6858e2af506e0e</id>
    <committed-date>2007-09-05T12:38:45-07:00</committed-date>
    <authored-date>2007-09-05T12:38:45-07:00</authored-date>
    <message>* Major internal changes, and some API change: see the rdoc for details.
  The headlines:
   - load_enclosing is now true by default
   - BC: the old options work for now, but you'll get deprecation messages
   - refactored a lot of code into friend classes - in particular there is now
     ResourcesController::Specification which specifies how to find a resource from the route


git-svn-id: https://svn.ardes.com/rails_plugins/resources_controller@411 845bbffb-5c18-0410-91b3-f25c072b94c1</message>
    <tree>7cebf0872acb2fdc01d8ffc4131f20bfe4a1700b</tree>
    <committer>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>8622f763a9a516d2f6155851b4cf917e8c3cfba1</id>
      </parent>
    </parents>
    <author>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/966c7131bc70d6cd2a9f6802a98625230fd59122</url>
    <id>966c7131bc70d6cd2a9f6802a98625230fd59122</id>
    <committed-date>2007-08-19T01:14:43-07:00</committed-date>
    <authored-date>2007-08-19T01:14:43-07:00</authored-date>
    <message>tiny: added some comments to app.rb


git-svn-id: https://svn.ardes.com/rails_plugins/resources_controller@407 845bbffb-5c18-0410-91b3-f25c072b94c1</message>
    <tree>78ac18d59aa9c3fe915eb21847accb1d2d36c39b</tree>
    <committer>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>68ddf96f2a8d1936f678e2beb85be6ab8de06b6f</id>
      </parent>
    </parents>
    <author>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/4bbd928ac3650eeca861d40a84857005ebd22024</url>
    <id>4bbd928ac3650eeca861d40a84857005ebd22024</id>
    <committed-date>2007-08-19T01:12:13-07:00</committed-date>
    <authored-date>2007-08-19T01:12:13-07:00</authored-date>
    <message>Added more specs
map_enclosing_resource can be called anywhere, so that it can be placed in extensions



git-svn-id: https://svn.ardes.com/rails_plugins/resources_controller@405 845bbffb-5c18-0410-91b3-f25c072b94c1</message>
    <tree>aaf117ea601e9b96c534e0095bc3465052ef6f93</tree>
    <committer>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>c70cedd1aebc25b6689bb9d858034b403f228381</id>
      </parent>
    </parents>
    <author>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/68ddf96f2a8d1936f678e2beb85be6ab8de06b6f</url>
    <id>68ddf96f2a8d1936f678e2beb85be6ab8de06b6f</id>
    <committed-date>2007-08-18T13:51:27-07:00</committed-date>
    <authored-date>2007-08-18T13:51:27-07:00</authored-date>
    <message>* resources_controller now supports singleton resources!  and much better :load_enclosing support
  Booya! =&gt;
    class TagsController &lt; ApplicationController
      resources_controller_for :tags, :load_enclosing =&gt; true
    end

    this will service all these routes (loading the resources into assigns for the view)

      /tags
      /forums/2/tags
      /images/1/tags
      /home/tags          &lt;= singular resource
      /users/1/image/tags &lt;= nested singular resource

    Also

    class BlogController &lt; ApplicationController
      resources_controller_for :blog, :singleton =&gt; true, :load_enclosing =&gt; true
    end

    class PostController &lt; ApplicationController
      resources_controller_for :post, :load_enclosing =&gt; true
    end

    for /campaigns/1/blog
        /users/2/blog
        /campaigns/1/blog/posts
        /users/2/blog/posts
        /blogs/2/posts

        etc...

  TODO: rewrite docs - for now check out the spec suite.
  TODO: refactor code - I did it BDD stylee, so there's lots of specs but also a lot of code that 'is the simplest thing that makes the specs pass'



git-svn-id: https://svn.ardes.com/rails_plugins/resources_controller@403 845bbffb-5c18-0410-91b3-f25c072b94c1</message>
    <tree>55050bab14a7677ca2845b8055c3ff0f22b7d034</tree>
    <committer>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>50eed55b676e4c1b723b5aac2decb3a3da562d52</id>
      </parent>
    </parents>
    <author>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/c70cedd1aebc25b6689bb9d858034b403f228381</url>
    <id>c70cedd1aebc25b6689bb9d858034b403f228381</id>
    <committed-date>2007-08-18T03:29:28-07:00</committed-date>
    <authored-date>2007-08-18T03:29:28-07:00</authored-date>
    <message>resources_controller: moved routing to the top of the spec/app.rb - as it's important for understanding the specs

git-svn-id: https://svn.ardes.com/rails_plugins/resources_controller@402 845bbffb-5c18-0410-91b3-f25c072b94c1</message>
    <tree>445ea4dfcb31569114a515dd7a32d90d570483bf</tree>
    <committer>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>48c58cdc881f198937790531240aa9ffab664a33</id>
      </parent>
    </parents>
    <author>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/50eed55b676e4c1b723b5aac2decb3a3da562d52</url>
    <id>50eed55b676e4c1b723b5aac2decb3a3da562d52</id>
    <committed-date>2007-08-18T03:25:04-07:00</committed-date>
    <authored-date>2007-08-18T03:25:04-07:00</authored-date>
    <message>removed the name_prefix stuff from the route specifications

git-svn-id: https://svn.ardes.com/rails_plugins/resources_controller@401 845bbffb-5c18-0410-91b3-f25c072b94c1</message>
    <tree>1b893c1d24755a4ccd16a3377076373e124e5322</tree>
    <committer>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>18e393911b35e7e298a11c1eb90fc4f2b28156b5</id>
      </parent>
    </parents>
    <author>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/48c58cdc881f198937790531240aa9ffab664a33</url>
    <id>48c58cdc881f198937790531240aa9ffab664a33</id>
    <committed-date>2007-08-18T03:22:18-07:00</committed-date>
    <authored-date>2007-08-18T03:22:18-07:00</authored-date>
    <message>resources_controller:

* resources_request has changed format - it now returns an array like this
  [ {:name =&gt; &quot;forums&quot;, :name_prefix =&gt; &quot;forum_&quot;, :key =&gt; :forum_id, :id =&gt; &quot;1&quot;}, {:name =&gt; &quot;posts&quot;}]
  Singular resources are detected properly (see spec/specs/resources_controller_spec for some tests).
  This paves the way for singular_resource support, and better 'many routes/one controller' support

  Decided that Patching Routing was a bad idea, so route is re-recognized using the request path.  This
  only happens for controllers with :load_enclosing =&gt; true




git-svn-id: https://svn.ardes.com/rails_plugins/resources_controller@400 845bbffb-5c18-0410-91b3-f25c072b94c1</message>
    <tree>6ab981ba2661cb67988e99030a21c039a210de49</tree>
    <committer>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>f4f78c80dd73d3d1df71bd8de953cbb9d8912c8b</id>
      </parent>
    </parents>
    <author>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/18e393911b35e7e298a11c1eb90fc4f2b28156b5</url>
    <id>18e393911b35e7e298a11c1eb90fc4f2b28156b5</id>
    <committed-date>2007-08-17T06:28:31-07:00</committed-date>
    <authored-date>2007-08-17T06:28:31-07:00</authored-date>
    <message>resources_controller:

* You can now call methods such as enclosing_resource_path, enclosing_resources_path, etc
  in your controller and view and the correct url helper will be called.  These url_helpers are defined
  as they are needed, so it's pretty fast.

* Removing routing decoration for now



git-svn-id: https://svn.ardes.com/rails_plugins/resources_controller@399 845bbffb-5c18-0410-91b3-f25c072b94c1</message>
    <tree>e92fce96cf1a80609e4d90de728fd0d050868c52</tree>
    <committer>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>836cf60667f11638f751799860083948a6c8bdac</id>
      </parent>
    </parents>
    <author>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/f4f78c80dd73d3d1df71bd8de953cbb9d8912c8b</url>
    <id>f4f78c80dd73d3d1df71bd8de953cbb9d8912c8b</id>
    <committed-date>2007-08-17T03:19:54-07:00</committed-date>
    <authored-date>2007-08-17T03:19:54-07:00</authored-date>
    <message>resources_controller

* Enclosing resources are now all loaded by one method :load_enclosing which is a prepend_before_filter.
  This means that you can access the enclosing resources in all before_filters, even when a subclass adds
  more nestings.

  Example:

    class PostsController &lt; ApplicationController
      resources_controller_for :posts
    end

    class UserPostsController &lt; PostsController
      nested_in :user

      before_filter {|c| raise 'boom' if @user.name == 'Santa'}
    end



git-svn-id: https://svn.ardes.com/rails_plugins/resources_controller@398 845bbffb-5c18-0410-91b3-f25c072b94c1</message>
    <tree>c04bb53fbf7e0d4b76562828e7da8ba801373195</tree>
    <committer>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>4e33aa81334a893f5d8bcb6c74c703b1a73d9df1</id>
      </parent>
    </parents>
    <author>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/0181a4ad41eee4c1ba1eff102a5b262aa62e426e</url>
    <id>0181a4ad41eee4c1ba1eff102a5b262aa62e426e</id>
    <committed-date>2007-06-07T07:49:54-07:00</committed-date>
    <authored-date>2007-06-07T07:49:54-07:00</authored-date>
    <message>Now handles enclosing named paths.  You can reference named routes that are
  'below' (or enclosed by) the current resource by appending resource_ to that
  named route. [thanks Chris Hapgood for the initial idea]



git-svn-id: https://svn.ardes.com/rails_plugins/resources_controller@325 845bbffb-5c18-0410-91b3-f25c072b94c1</message>
    <tree>9792c3a2bb533eb166b413808f54f3166f613004</tree>
    <committer>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>b1217503d30f03ba1ae80367c4b80fc37da4c29d</id>
      </parent>
    </parents>
    <author>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </author>
    <url>http://github.com/ianwhite/resources_controller/commit/4e33aa81334a893f5d8bcb6c74c703b1a73d9df1</url>
    <id>4e33aa81334a893f5d8bcb6c74c703b1a73d9df1</id>
    <committed-date>2007-06-07T03:20:36-07:00</committed-date>
    <authored-date>2007-06-07T03:20:36-07:00</authored-date>
    <message>resources_controller: (find|new)_resource(s) methods are now defined by resources_controller_for only
  if they do not already exist


git-svn-id: https://svn.ardes.com/rails_plugins/resources_controller@324 845bbffb-5c18-0410-91b3-f25c072b94c1</message>
    <tree>89bc724799d4c3df4801af3009adecc2f746fcbd</tree>
    <committer>
      <name>ian</name>
      <email>ian@845bbffb-5c18-0410-91b3-f25c072b94c1</email>
    </committer>
  </commit>
</commits>
