Why does Rails 4 scaffold create json.jbuilder files?

后端 未结 4 543
走了就别回头了
走了就别回头了 2021-02-01 14:57

I\'ve generated a new rails 4 (rc1) project using rails new and generated a scaffold using rails g scaffold.

As expected it has created the mi

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-01 15:43

    Rails 4 scaffold generator creates jbuilder files because the gem 'Jbuilder' is in the Gemfile. If you remove this from your Gemfile this functionality will stop.

提交回复
热议问题