title: Item attributes not being saved on update
body: <p>I am building a simple task management app and use a checkbox to indicate whether a task is done.</p>
  
  <p>Here is code I came up with:</p>
  
  <pre><code>&lt;%= check_box_tag "id", "id", task.done, 
      :onclick =&gt; remote_function(
        :update =&gt; "task", 
        :url =&gt; { :action =&gt; :update, :controller =&gt; :tasks, :id =&gt; task.id }, 
        :with =&gt; "'task[done]=true'", 
        :complete =&gt; "alert('hi')"  ) %&gt;
  </code></pre>
  
  <p>It does print the checkbox, and it does check it automatically depending on the status of task.done. But when I fire the onclick and watch the logs, the update method gets called, but the done information is not updated on the task.</p>
  
  <p>Here is the code for update on the task controller:</p>
  
  <pre><code>  def update
      @task = Task.find(params[:id])
      @stream = Stream.find(@task.stream_id)
  
      respond_to do |format|
    if @task.update_attributes(params[:task])
      format.html { redirect_to(@stream, :notice =&gt; 'Task was successfully updated.') }
      format.json { head :ok }
    else
      format.html { render :action =&gt; "edit" }
      format.json  { render :json =&gt; @task.errors, :status =&gt; :unprocessable_entity }
  
  
       end
      end
    end
  </code></pre>
  
  <p>Why is the done=true not being updated on the task record?</p>
  
  <p>Thanks a lot guys</p>