lib/airtable/table.rb
# Creates a record by posting to airtable
Creates a record by posting to airtable
Creates a record by posting to airtable
def create(record)
      result = self.class.post(worksheet_url,
        :body => { "fields" => record.fields }.to_json,
        :headers => { "Content-type" => "application/json" }).parsed_response
      if result.present? && result["id"].present?
        record.override_attributes!(result_attributes(result))
        record
      else 
        false
      end
    end
def create ( record ) result = self . class . post ( worksheet_url , :body => { "fields" => record . fields } . to_json , :headers => { "Content-type" => "application/json" } ) . parsed_response if result . present? && result [ "id" ] . present? record . override_attributes! ( result_attributes ( result ) ) record else false end end
Creates a record by posting to airtable
Creates a record by posting to airtable
# failed
record
<not_specific>