def update
    @category = Category.find(params[:id])

    respond_to do |format|
      if @category.update_attributes(params[:category])