<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -37,7 +37,7 @@ class AllowanceTasksController &lt; ApplicationController
   end
 
   # Toggle the active state of a task
-  def task_toggle
+  def update
     task=AllowanceTask.find params[:id].to_i
     active = (params[:active] == 'true')
     task.deleted = !active</diff>
      <filename>app/controllers/allowance_tasks_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -19,10 +19,8 @@
 				&lt;tr id=&quot;task_&lt;%= t.id %&gt;&quot; &lt;%= t.deleted ? 'class=&quot;deleted&quot;' : '' %&gt;&gt;
 					&lt;td&gt;
 		        &lt;%= content_tag :input, '', :type =&gt; :checkbox,
-		                        :onclick =&gt; remote_function(:url =&gt; {
-		                                                      :controller =&gt; :allowance,
-		                                                      :action =&gt; :task_toggle,
-		                                                      :id =&gt; t.id},
+		                        :onclick =&gt; remote_function(:url =&gt; allowance_task_path(t),
+		                                                    :method =&gt; :put,
 		                                                    :with =&gt; &quot;'active='+this.checked&quot;),
 		                                    :checked =&gt; 'checked' %&gt;
 					&lt;/td&gt;</diff>
      <filename>app/views/allowance_tasks/index.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -88,7 +88,7 @@ class AllowanceTasksControllerTest &lt; Test::Unit::TestCase
   def test_deactivation
     login_as :quentin
     assert_difference 'AllowanceTask.count_active', -1 do
-      xhr :post, :task_toggle, :id =&gt; 1, :active =&gt; 'false'
+      xhr :post, :update, :id =&gt; 1, :active =&gt; 'false'
       assert_response :success
       assert_template 'allowance_tasks/deactivate'
     end
@@ -97,7 +97,7 @@ class AllowanceTasksControllerTest &lt; Test::Unit::TestCase
   def test_activation
     login_as :quentin
     assert_difference 'AllowanceTask.count_active' do
-      xhr :post, :task_toggle, :id =&gt; 4, :active =&gt; 'true'
+      xhr :post, :update, :id =&gt; 4, :active =&gt; 'true'
       assert_response :success
       assert_template 'allowance_tasks/activate'
     end</diff>
      <filename>test/functional/allowance_tasks_controller_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e32f222b60251c00a9a2324129c21096b0a1c068</id>
    </parent>
  </parents>
  <author>
    <name>Dustin Sallings</name>
    <email>dustin@spy.net</email>
  </author>
  <url>http://github.com/dustin/money/commit/4f527c1471b3c6fa3fb72a35562a01d2c0a53b8b</url>
  <id>4f527c1471b3c6fa3fb72a35562a01d2c0a53b8b</id>
  <committed-date>2008-05-24T15:51:19-07:00</committed-date>
  <authored-date>2008-05-24T15:51:19-07:00</authored-date>
  <message>Use PUT for enabling and disabling tasks.</message>
  <tree>7ad7807050c4e94f274a9c2a6a0524dcceca4aae</tree>
  <committer>
    <name>Dustin Sallings</name>
    <email>dustin@spy.net</email>
  </committer>
</commit>
