On Cleaner Controllers
18-May-2017 2424
A few days ago, I worked on a project that was mostly about serving up basic store data (modeled after Etsy) to an API.We had a few dozen end-points, and all responses were in JSON.Most of the action happened inside of our controllers, and as you might imagine, our routes.rb file was bananas.One of the instructors made an exceptionally simple suggestion, I was embarrassed to not have seen it.
On Cleaner Controllers #ruby #rubydeveloper #rubyonrails #Cleaner #Controllers https://rubyonrails.ba/link/on-cleaner-controllers