I took the tutorial's controller structure, removed any dependency on jbuilder, tested, and linted.
Right now, the view templates are empty since I only needed them to exist for the specs to pass. If you consider the html support unnecessary, let me know and I'll tear it out.
Regarding the pending specs, I couldn't figure out any way for the update saves to actually fail. We've got no associations, Strong Parameters whitelists our parameters, the inclusion validation I tried turns any string or number into true. Let me know if you think of something because all I could think of was a double which returns false on save.
I took the tutorial's controller structure, removed any dependency on jbuilder, tested, and linted.
Right now, the view templates are empty since I only needed them to exist for the specs to pass. If you consider the html support unnecessary, let me know and I'll tear it out.
Regarding the pending specs, I couldn't figure out any way for the update saves to actually fail. We've got no associations, Strong Parameters whitelists our parameters, the inclusion validation I tried turns any string or number into
true
. Let me know if you think of something because all I could think of was a double which returnsfalse
onsave
.This change is![Reviewable](https://reviewable.io/review_button.svg)