Open uri20170518 20914 1uucxzi?1495142631

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.
#ruby #rails #rubyonrails #bosnia #programming #tutorials #news

U
Nezir Zahirovic

Freelance software developer Ruby On Rails (4 years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles