Generate a controller with all the RESTful functions

前端 未结 10 1634
遇见更好的自我
遇见更好的自我 2021-01-30 07:58

I am trying to generate a controller with all the RESTful actions stubbed. I had read at Wikibooks - Ruby on Rails that all I needed to do was to call the generator with the co

10条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-30 08:30

    In Rails 4/5 the following command does the trick for me.

    rails g scaffold_controller Property --skip-template-engine
    

    It generated the controller actions but not the view.

提交回复
热议问题