Method: WebFlow::BaseHelper#flow_form_tag

Defined in:
lib/webflow/base_helper.rb

#flow_form_tag(url_for_options = {}, options = {}, &block) ⇒ Object



187
188
189
190
191
192
193
194
195
196
197
198
# File 'lib/webflow/base_helper.rb', line 187

def flow_form_tag(url_for_options = {}, options = {}, &block)
  content =
      if block_given?
        form_tag url_for_options, options, &block
      else
        form_tag url_for_options, options
      end

  content << hidden_field_tag(WebFlow::Base.flow_execution_key_id, @flow_id)

  content
end