def item_params
      model = @item.class.name.split('::').last.underscore
      params.require(:"#{model}").permit!
    end
def item_params
      model = @item.class.name.split('::').last.underscore
      params.require(:"#{model}").permit!
    end
Only allow a trusted parameter "white list" through.