On Cleaner Controllers

18-May-2017 2463
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.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle