Update: NoMethodError?

Hi,

I’m trying to update an existing model from form data, by doing

    def update
            # Get the subscriber corresponding to the client.
            params[:form][:user_id] = session[:user_id]
            @user = User.find(session[:user_id])
            @form = Form.find_by_user_id(@user.id)
            @form.update(params[:form])
            if ([email protected]?)
                    flash[:notice] = "Form is invalid."
                    render :action => 'edit'
            else
                    @form.save
                    redirect_to :controller => 'order', :action =>

‘new’
end
end

but the line “@form.update(params[:form])” gives me the error

NoMethodError in FormsController#update
private method `update’ called for #Form:0xb785ef28

I’m sure this is a syntax thing that I’m missing, but any advice you
can offer is appreciated, - Dave