You should check if the name of the field you get in params[:field]is exactly the same as the name of the original field (without extra spaces, etc.). You can check it on puts params[:field].inspectand check it on the terminal (where the rails server is running).
update_attribute . , update_attribute. , :
def update_attribute(name, value)
name = name.to_s
raise ActiveRecordError, "#{name} is marked as readonly" if self.class.readonly_attributes.include?(name)
send("#{name}=", value)
save(:validate => false)
end
, . @jdoe, (. save(:validate => false) ), , .