     data = _.object _.map $(event.target).serializeArray(), _.values
     message = new Message text: data.text
     message.url = "/bb/conversations/#{@id}/messages"
-    message.save {},
-      beforeSend: (xhr) =>
+    message.save null,
+      beforeSend: (xhr) ->
         xhr.setRequestHeader 'X-CSRFToken', data.csrfmiddlewaretoken
       success: =>
         @$el.find('textarea') .val ''

    super callback, args, name

  home: ->
    return

  conversation: (id) ->
    chatView = new ChatView id: id

class Message extends Backbone.Model

class Conversation extends Backbone.Model
  urlRoot: '/bb/conversations'

  parse: (response, options) ->
    if not @messages?
      @messages = new Messages
    @messages.add response.messages, merge: true
    delete response.messages
    return response

  getViewUrl: ->
    '/bb/c/' + @get('id') + '/'

class Messages extends Backbone.Collection
  model: Message

class Conversations extends Backbone.Collection
  model: Conversation
  url: '/bb/conversations'

class ConversationListView extends Backbone.View
  template: _.template $('#conversation-list-view').html()

  initialize: ->
    @listenTo @collection, 'update', @render
    return

  render: =>
