Why does Rails 4 scaffold create json.jbuilder files?

后端 未结 4 501
走了就别回头了
走了就别回头了 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:57

    Jbuilder gem included in RoR 4 by default. You could read about it on its page. There is a cast about it: Railscasts #320.

提交回复
热议问题