Backend Pattern Controller - department-of-veterans-affairs/caseflow GitHub Wiki

[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
⚠️ **GitHub.com Fallback** ⚠️