Method: Formic::Form#put

Defined in:
lib/formic/form.rb

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



12
13
14
15
16
17
# File 'lib/formic/form.rb', line 12

def put options={}, &block
  self.options[:method ] = 'POST'
  self.options[:_method] = 'PUT'
  self.content = block if block_given?
  return self
end