On rails when updating a model, how do you prevent some properties of the model from being updated when using a type call:
@user.update_profile params[:user]
Since anyone can simply create a form input with a name like “password”, how can you filter out a set of properties that you can update?
Is that what attr_XXX is for?
source
share