Method: Forms#publish_form

Defined in:
lib/user/content/forms.rb

#publish_form(id, data) ⇒ Object

Publish form.

Publish a form.

Parameters

id

(Integer) – Form id.

data

(Hash) – Data to be submitted.

Example

data = {
  slug: "new-publish"
}
@data = @mints_user.publish_form(1, data)


36
37
38
39
# File 'lib/user/content/forms.rb', line 36

def publish_form(id, data)
  # FIXME: Output cannot be processed. response cannot be converted to json.
  @client.raw('put', "/content/forms/#{id}/publish", nil, data_transform(data))
end