shakacode / old-react-on-rails-examples

Various example apps for React on Rails, outdated
1 stars 0 forks source link

Add Starting Controllers #6

Closed Judahmeek closed 7 years ago

Judahmeek commented 7 years ago

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.


This change is Reviewable