ruby on rails - Is it possible to define ActionController::Base in many different controllers? -
If you had command control , can you define classes like this? Classroom Order Controller & lt; ActionController :: Base # End of stuff When I prepare a railroad scaffold, this is the only place that is being defined by ApplicationController (application_controller.rb) in, next to other controllers I have created class order controller & lt; ApplicationController # stuff end Is it right to use the first one? In which case? I can not find the correct answer. It is technically possible but is not advised. Read: Quoted from the page: By default, AppController is received by AppController :: Base in only one application. In return, all other controllers are deprived of the ApplicationController. It provides you with a class to configure in a way such as filing of forgery security and sensitive request parameters of the request. You can participate very well directly from ActionController :: Base. This is only a matter of class succession. Action Co...