Method: Microframe::FormHelper#submit

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

#submitObject



31
32
33
34
35
36
37
# File 'lib/microframe/controller/form_helper.rb', line 31

def submit
  output = ""
  output += "<input type = 'hidden' name = '_method' value = 'put'/>" if target_id
  output += "<input type = 'submit' value = 'save' />"
  output += "</form>"
  gatekeeper output
end