ticketevolution/ticketevolution-ruby — Issue #23: 500 when creating a client with inline nested attributes
Author: onemanarmy
Created: 2012-03-07 16:26:08+00:00
State: open

I'm unable to create a client with inline nested attributes as per the [Developer API](http://developer.ticketevolution.com/endpoints/clients#create)

```ruby
1.9.2-p290 :011 > tevo.clients.create(name: "Jake Snake", office_id: 782, phone_numbers: [{ number: "555-5555" }], email_addresses: [{ address: "jake@snake.com" }])
=> #
```

te_api.log

```ruby
post https://api.sandbox.ticketevolution.com/clients
X-Signature: "sc3bIGpCthieGpH4BAAQtUJ4DovkyWKU5lfiYfSuBLk="
X-Token: "0c34bb351ee3f76e00a1ab55fd66a8f1"
Accept: "application/vnd.ticketevolution.api+json; version=8"
{"clients":[{"name":"Jake Snake","office_id":782,"phone_numbers":[{"number":"555-5555"}],"email_addresses":[{"address":"jake@snake.com"}]}]}
500
content-type: "application/vnd.ticketevolution.api+json; version=8; charset=utf-8"
transfer-encoding: "chunked"
connection: "close"
status: "500"
x-powered-by: "Phusion Passenger (mod_rails/mod_rack) 3.0.11"
cache-control: "no-cache"
x-runtime: "0.097306"
x-ua-compatible: "IE=Edge,chrome=1"
strict-transport-security: "max-age=31536000"
server: "nginx/1.0.11 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)"
{"error":"Error"}
```

I believe I'm doing this correctly... Thanks for checking it out.