Explain me what is the difference between concern and application_controller.rb in ruby on rails?
Answer / 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 |
Explain rvm in rails?
what are benefits of using active record as opposed to raw sql queries?
How many types of relationships does a model has?
What is the main function of helpers used in ruby on rails?
What are generators in ruby on rails?
what is the function of garbage collection in Ruby on Rails?
What is the naming convention for variables?
ruby on rails and java ,which of one of the best in future &present?
Explain model in rails?
How is calling super() different from the super call?
How is direct different from render?
Explain how Rails implements Ajax?