I'm a React, Javascript & Rails full-stack Software Engineer. I have been working remotely for the past two years in a remote village. Before joining as a Software Engineer I founded kwiq - a hyperlocal delivery startup to deliver things in remote villages.
1 minute read
Rails provides generators to quickly create files that follow Rails conventions.
The most power-packed one is the scaffold generator which creates a model, controller, views,
and tests for a given resource.
Of course, each file can be created individually using the model, controller,
and job generators.
Before
The controller generator can be used to create an ApplicationController class, which serves as the base class for all controllers in the application.
Prior to Rails 7.1, It was not possible to directly generate a controller that inherits from a class other than ApplicationController.
We need to manually update the parent class in the controller file after it has been generated.