adspace


Explain me what is the role of rails controller?

Answer Posted / Ashish Kumar Johri

"The controller in Ruby on Rails serves as an intermediary between the user and the application. It processes incoming requests, retrieves data from the model, and sends it to the view for rendering. Controllers handle HTTP requests (GET, POST, PUT, DELETE) by invoking actions and passing control to the appropriate views.""n

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?

949