Skip to content

Backend Pattern Controller

Ferris Tseng edited this page Dec 13, 2019 · 2 revisions

[Pattern] Controller

Description

Controllers provide an interface between the view and the model. They should include response-related logic, including flash messages and redirects.

Any non-response-related logic should go in the model. This allows for more easily testing code outside of the context of a request.

Location

  • app/controllers

Best Practices

If any?

Resources

Examples in Caseflow

Additional Reading

Related Patterns

Pattern Description
Test - Controller Tests for controllers
Form Handles complex validation
Clone this wiki locally