Generate a controller with all the RESTful functions

前端 未结 10 1464
遇见更好的自我
遇见更好的自我 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:35

    In Rails 4 it's rails g controller apps new create update edit destroy show index

    Or rails generate controller apps new create update edit destroy show index if you want to write out the full term :).

提交回复
热议问题