Learn Buffalo

Controllers

Part 4

Generate controller routes to show models in list form, single item and display a form.

  • CLI steps to create an action and handler function
  • modify the handler to return some data
  • create a grift task to seed data in the DB
  • testing controllers with ActionSuite, using test fixtures to setup test data
  • pop Eager() method to load model associations

Watch the video

View the code