category_id and params[:category] seem to be correct and the
documentation doesn't specify anything else. Any ideas what going
wrong?
You have to replace that third line with:
category.attributes = params[:category]
But I prefer the notation of the default scaffold that uses
#update_attributes. Depending on what you're submitting to that action,
params[:category_id] might not work and you'll have to use params[:id]
instead.