| Path: | lib/action_flow/view_step.rb |
| Last Update: | Thu Apr 26 14:41:35 -0400 2007 |
Called to define a step into a flow. Example of usage :
view_step :view_name do
on :success => :another_step on :back => :yet_another_step
end
# File lib/action_flow/view_step.rb, line 106 def self::view_step(view_name, &block) # Instanciate a ViewStep object step = ActionFlow::ViewStep.new(view_name) # Register this step in the flow repository register view_name, step # Execute the config block step.instance_eval &block # Return self to receive block instructions return step end