list-of-ingredients
list-of-ingredients copied to clipboard
[workaround] use -c=scaffold_controller if errors show up during scaffolding
I edited config/application.rb as instructed,
config.app_generators.scaffold_controller = :scaffold_controller
But that did not work for me.
You can use -c=scaffold_controller
in the CLI when generating a scaffold as a workaround to make it work without triggering the api_controller
error.
For example,
bin/rails g scaffold Drink title:string description:string steps:string source:string -c=scaffold_controller