Resource Generator
Generate a RESTful resource with model and controller (no views).
rails generate resource --parent=ApplicationRecord --model-name=controller --test-framework=test_unit --template-engine=erb
Optional configurations
Generate a RESTful resource with model and controller (no views).
rails generate resource --parent=ApplicationRecord --model-name=controller --test-framework=test_unit --template-engine=erb