Controller Code Is Configuration
Learn about the role of controllers in responding to HTTP requests in a Rails application.
We'll cover the following
Unique role of controllers in Rails
If we want to respond to an HTTP request in a Rails application, we need to use a controller. That’s why they exist. In this sense, only a controller can receive an HTTP request, trigger business logic based on it, and then send a response, be that rendering a view or redirecting to another path.
Get hands-on with 1400+ tech skills courses.