Method: Ubiquitously::Webdev5::Post#create

Defined in:
lib/ubiquitously/services/webdev5.rb

#createObject



18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/ubiquitously/services/webdev5.rb', line 18

def create
  page = agent.get("http://webdev5.com/submit")
  form = page.forms.detect {|form| form.form_node["id"] == "node-form"}
  
  form["url"] = token[:url]
  form["title"] = token[:title]
  form["body"] = token[:body]
  form.field_with(:name => "taxonomy[1]").options.each do |option|
    
  end
  form["taxonomy[tags][2]"] = token[:tags]
end