Some of the things I suggest above allows you to then conventional your controllers further which helps you avoid the many abstractions that are wrongly and commonly adopted in Rails applications.
So here pulled from one of my many code bases below I show you this conventialize base controller. When you are tasked with building many Rails apps you may come to the same natural conclusion I am showing and will find that the majority of web-apps can fit within this structure allowing for rapid development of insane speeds.
This then opens up your code base to create powerful generators because things are so highly conventialize. When I use to run my own dev-firm we could generate out 80% of a web-app and have an MVP for delivery in two days.
Thoughbot had something similar but not to this level of exterme generation.
A bit of rant but food for thought for thoes getting into Rails.
A Suggestion About Controllers
I would suggest the following refactors:
Some of the things I suggest above allows you to then conventional your controllers further which helps you avoid the many abstractions that are wrongly and commonly adopted in Rails applications.
So here pulled from one of my many code bases below I show you this conventialize base controller. When you are tasked with building many Rails apps you may come to the same natural conclusion I am showing and will find that the majority of web-apps can fit within this structure allowing for rapid development of insane speeds.
So the result that occurs is you have controllers that contain the real code and nothing more.
This then opens up your code base to create powerful generators because things are so highly conventialize. When I use to run my own dev-firm we could generate out 80% of a web-app and have an MVP for delivery in two days.
Thoughbot had something similar but not to this level of exterme generation.
A bit of rant but food for thought for thoes getting into Rails.
Interesting point.
How Pushing all the CRUD logic in a base class make this easier/faster than just scafolding models + controllers ?