<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -192,6 +192,7 @@ module RestfulWorkflow
     def forward_url
       if @forward
         url = @forward.respond_to?(:call) ? controller.instance_eval(&amp;@forward) : @forward
+        url = { :id =&gt; url } if url.kind_of?(Symbol)
       end
       url || { :id =&gt; (next_step || self).name } 
     end
@@ -213,6 +214,7 @@ module RestfulWorkflow
     def back_url
       if @back
         url = @back.respond_to?(:call) ? controller.instance_eval(&amp;@back) : @back
+        url = { :id =&gt; url } if url.kind_of?(Symbol)
       end
       url || { :id =&gt; (previous_step || self).name }
     end</diff>
      <filename>lib/restful_workflow.rb</filename>
    </modified>
    <modified>
      <diff>@@ -42,4 +42,10 @@ describe &quot;RestfulWorkflow::Filters&quot; do
     @controller.load_current_object
     @controller.send(:instance_variable_get, &quot;@current_object&quot;).should == @data
   end
+  
+  it &quot;should add a before filter to load the current object&quot; do
+    @kontroller.filter_chain.should_not be_empty
+    @kontroller.find_filter(:load_current_object).should_not be_nil
+    @kontroller.find_filter(:load_current_object).should be_before
+  end
 end
\ No newline at end of file</diff>
      <filename>spec/filters_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -175,11 +175,10 @@ describe &quot;RestfulWorkflow::Step&quot; do
         @one.forward_url.should == &quot;/&quot;
       end
       
-      it &quot;to a block that evals to nil should determine the next step's URL to be the default&quot; do
-        @one.forward do
-        end
-        @one.forward_url.should == {:id =&gt; &quot;two&quot;}
-      end
+      it &quot;to a block which evals to a symbol results in a URL to the step by that name&quot; do
+        @one.forward { :two }
+        @one.forward_url.should == {:id =&gt; :two}
+      end      
     end
     
     describe &quot;when the previous step is assigned manually&quot; do
@@ -200,12 +199,11 @@ describe &quot;RestfulWorkflow::Step&quot; do
         @one.back &quot;/&quot;
         @one.back_url.should == &quot;/&quot;
       end
-
-      it &quot;to a block that evals to nil should determine the previous step's URL to be the default&quot; do
-        @one.back do
-        end
-        @one.back_url.should == {:id =&gt; &quot;one&quot;}
-      end
+      
+      it &quot;to a block which evals to a symbol results in a URL to the step by that name&quot; do
+        @one.back { :two }
+        @one.back_url.should == {:id =&gt; :two}
+      end      
     end
   end
   </diff>
      <filename>spec/step_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1ce7b9e42f3927cf11f125f5afd936abe6bd1265</id>
    </parent>
  </parents>
  <author>
    <name>Loren Johnson</name>
    <email>lorenj@lorens-laptop.local</email>
  </author>
  <url>http://github.com/seancribbs/restful_workflow/commit/649c73694fed4218b0a183e31c2a08b3018abe85</url>
  <id>649c73694fed4218b0a183e31c2a08b3018abe85</id>
  <committed-date>2008-05-03T16:57:13-07:00</committed-date>
  <authored-date>2008-05-03T16:57:13-07:00</authored-date>
  <message>Added symbol only return value option to forward / back methods in the step DSL (will assume an id value). Specs included.</message>
  <tree>902d36474679bc3594f9836f828f7c402118f0af</tree>
  <committer>
    <name>Loren Johnson</name>
    <email>lorenj@lorens-laptop.local</email>
  </committer>
</commit>
