Module ActionFlow::BaseHelper
In: lib/action_flow/base_helper.rb

This module adds helper methods to ActionFlow controllers. See each method for a complete description of their function.

Methods

Public Instance methods

Closes a form tag.

[Source]

# File lib/action_flow/base_helper.rb, line 36
  def end_flow_form
    "</form>"
  end

Creates a form tag to send data to the ActionFlow controller.

[Source]

# File lib/action_flow/base_helper.rb, line 31
  def flow_form(method=:post)
    "<form action=\"\" method=\"#{method}\" >\n<input type=\"hidden\" name=\"#{ActionFlow::Base.event_input_name}\" id=\"#{ActionFlow::Base.event_input_name}\" value=\"\" />\n<script type=\"text/javascript\">\nfunction submit_flow_form(form,event){\ndocument.getElementById('#{ActionFlow::Base.event_input_name}').value='#{ActionFlow::Base.event_prefix}' + event;\nform.submit();\n}\n</script>\n<input type=\"hidden\" name=\"#{ActionFlow::Base.flow_execution_key_id}\" value=\"#{@flow_id}\" />"
  end

Creates a hidden input which sends a given event to the ActionFlow framework.

[Source]

# File lib/action_flow/base_helper.rb, line 26
  def submit_flow_event(label='Submit', event_name='')
    "<input type=\"button\" onclick=\"submit_flow_form(this.form,'#{event_name}');\" value=\"#{label}\" />"
  end

[Validate]