Method: Microframe::FormHelper#start_form

Defined in:
lib/microframe/controller/form_helper.rb

#start_formObject



12
13
14
15
16
17
# File 'lib/microframe/controller/form_helper.rb', line 12

def start_form
  @form_started = true
  @target_id = target.id ? target.id : nil
  @link ||= "/#{target_name}s/#{target_id || ""}"
  "<form action='#{@link}' method='post'>"
end