On Cleaner Controllers

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 https://rubyonrails.ba/single/on-cleaner-controllers

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles