ruby on rails

A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern.

https://rubyonrails.org/

Notes

  • to see the SQL executed, just prefix the active record with .to_sql
  • use rails routes | rg internal_api -C 10 to get the controller helper for the tests
  • use rails t path/to/file.rb:123 to test a file
  • generate the openapi.json from the documentation.yml using the following command:
npm run bundle:api-doc privacy_preferences
  • validates on the model to validate inputs
  • concerns for cross-cutting concerns functions

Resources