adspace


Explain me what is the difference between concern and application_controller.rb in ruby on rails?

Answer Posted / Vimal Kumar

ApplicationController.rb is the base controller for all controllers in a Rails application. It contains common methods shared among controllers, such as authentication or session handling.nnConcerns, on the other hand, are modules that can be included in any model or controller to add specific functionalities without duplicating code. They allow you to share functionality between multiple controllers and models.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the current version of ruby on rails?

948