title: Passing parameters to update nested attributes
body: <p>I'm working on a very basic practice application where a user can create multiple quotations.  The problem I'm having is that I can't update my quotations. I've many things and have read through other questions here and on google, but can't figure out what I am doing wrong.  Here is my code:</p>
  
  <pre><code>#User Model
      class User &lt; ActiveRecord::Base
        has_many :quotations, :dependent =&gt; :destroy
        attr_accessible :quotations
        accepts_nested_attributes_for :quotations, :allow_destroy =&gt; true
      end
  
  #Quotations Model
  class Quotation &lt; ActiveRecord::Base
    attr_accessible :quote_text, :author, :quote_type, :category, :tags, :user_id
    belongs_to :user
  end
  </code></pre>
  
  <h1>Quotations Controller</h1>
  
  <pre><code>class QuotationsController &lt; ApplicationController
    before_filter :get_user
  
    def get_user
      @user = User.find(params[:user_id])
    end 
  
    def edit
      @quotation = @user.quotations.find(params[:id])
    end
  
    def update
      @quotation = @user.quotations.find(params[:id]) 
      if @quotation.update_attributes(params[:id])
        redirect_to user_quotation_path :notice  =&gt; "Successfully updated quotation."
      else
        render :action =&gt; 'edit'
      end
    end    
  
  end
  </code></pre>