Shopify/batman — Issue #174: Model save() sends url encoded param string as body of POST
Author: tsloughter
Created: 2011-10-10 14:27:27+00:00
State: open

It before worked for me just fine (prior to 0.6.1) and would POST the JSON representation of the Model when save() was called.

Now it will send something like:

```javascript
"rep=tristan&organization=tristan&phone=(111)+111-1111&email=tristan.sloughter%40gmail.com"
```

Example:

```coffeescript
class CT extends Batman.App
@global yes

class CT.User extends Batman.Model
@global yes
@persist Batman.RestStorage
@encode 'rep', 'organization', 'phone', 'email'

class CT.UsersController extends Batman.Controller
user : new User

create: =>
@user.save()
return false

CT.run()
```