Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
JSON Patch with Rails 5 and React
(
formapi.io
)
1 point
by
nathan_f77
on Nov 19, 2017
|
hide
|
past
|
favorite
|
2 comments
al2o3cr
on Nov 20, 2017
[–]
One thing to be aware of: applying the patch in `before_save` means validations won't see the changes. Might want to either move that to `before_validation` or apply the changes directly in the `update` action.
nathan_f77
on Nov 22, 2017
|
parent
[–]
That's a good point, thanks! I also wasn't sure about the before_save. I'll probably change the = method to apply the changes immediately.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: