list-of-ingredients icon indicating copy to clipboard operation
list-of-ingredients copied to clipboard

[workaround] use -c=scaffold_controller if errors show up during scaffolding

Open simondebbarma opened this issue 4 years ago • 0 comments

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

simondebbarma avatar May 02 '20 19:05 simondebbarma