Explain me what is the role of rails controller?



Explain me what is the role of rails controller?..

Answer / 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

More Ruby on Rails Interview Questions

what is the function of garbage collection in Ruby on Rails?

1 Answers  


Tell me what is the difference between the observers and callbacks in ruby on rails?

1 Answers  


What is active record in rails?

1 Answers  


what are the positive aspects of Rails?

1 Answers  


What is the naming convention for variables?

1 Answers  


List out the few features of Ruby?

1 Answers  


Explain view in rails?

1 Answers  


what is the difference between calling super() and super call?

1 Answers  


Explain the features of ruby on rails.

1 Answers  


Explain what are the servers supported by ruby on rails?

1 Answers  


what is ORM (Object-Relationship-Model) in Rails?

1 Answers  


How do rails implement ajax?

1 Answers  


Categories