Use the following command for creating a controller:

C:\ruby\library> ruby script/generate controller subject

The Rails controller is the center of the application that facilitates the interaction between users, views, and model. It also routes external requests to internal actions and handles URL. It also regulates helper modules and sessions.

BY Best Interview Question ON 13 Jan 2019

Suggest An Answer