I want to update attributes of a model:
  def update
    MyModel.update_attributes params[:id], params[:mymodel]
    #.....
  end
But it says undefined method `update_attributes' for #<Class:0x0000000396ecb0>. I wonder, isn't this the same as https://stackoverflow.com/a/840323/1708058