- require 'rest_client'
- require 'json'
- def add_to_web
- params = {
- things: {
- item1: "value1",
- item2: "value2",
- item3: "value3"
- }
- }
- request = RestClient.post "http://localhost:3000/someresource/", params.to_json, :content_type => :json, :accept => :json
- end