Skip JSON format in rails generate scaffold

前端 未结 4 1311
南旧
南旧 2021-02-07 01:29

When you generate a rails scaffold using a command like rails g scaffold Thing is there any way to avoid getting that annoying

respond_to do |format         


        
4条回答
  •  太阳男子
    2021-02-07 01:58

    Comment out gem jbuilder in your Gemfile and respond_to blocks won't be generated.

提交回复
热议问题