I would like to create a generic method to update certain params of my model.
Example:
@parameter = "name"
User.update(@parameter: "new name here")
So here I would like to update the column "name" with the value "new name here". But this method isn't working. Any Idea of how I should do it?