7 ms·
The real culprit here is HashWithIndifferentAccess, a crutch that throws away a difference that Ruby has for a reason. The sensible way to do updates, in my op
by lattepiu 15y ago
The real culprit here is HashWithIndifferentAccess, a crutch that throws away a difference that Ruby has for a reason.
The sensible way to do updates, in my opinion, is
User.update(:name => params['user']['name'])
But there's no way in Rails to keep that syntax while disabling
User.update(params['user'])
- bluesnowmonkey 15y agoclutch -> crutch