Using Services to Keep Your Rails Controllers Clean and DRY - 0 views
-
I’ll typically create an actions folder for things like create_invoice, and folders for other service objects such as decorators, policies, and support. I also use a services folder, but I reserve it for service objects that talk to external entities, like Stripe, AWS, or geolocation services.
-
You can create your own actions, decorators, support objects, and services.