     event.preventDefault()
     @setState updating: true
     if @props.card.isNew()
-      attributes = {title: @state.title, content: @state.content}
+      attributes = {title: @state.title, content: @state.content, tags: @state.tags}
     else
-      attributes = {new_title: @state.title, content: @state.content}
+      attributes = {new_title: @state.title, content: @state.content, tags: @state.tags}
     @props.card.save attributes,
       success: ()=>
         @setState updating: false

# @cjsx React.DOM 
$ = require('jquery')
React = require('react')
Modal = require('react-bootstrap/lib/Modal')
Button = require('react-bootstrap/lib/Button')

module.exports = React.createClass
  displayName: 'Edit'

  getInitialState: ()->
    updating: false
    title: @props.card.get('title')
    content: @props.card.get('content')
    errors: false

  onChangeTitle: ->

          <label class="control-label">Content</label>
          <textarea rows="10" className="form-control" value={@state.content} onChange={@onChangeContent} disabled={@state.updating} />
        </div>
        <div className="form-group">
          <label class="control-label">Tags</label>
          <TagsInput ref='tags' valueLink={this.linkState('tags')} />
        </div>
        <div className="form-group" style={{paddingBottom:'17px'}}>
          <button className="btn btn-default pull-right" onClick={@onClickOk} disabled={@state.updating}>
            &nbsp;
