Rails 3: Call functions inside controllers

前端 未结 4 552
误落风尘
误落风尘 2020-12-29 11:31

If I want to have functions to be called inside controllers, where should I put them?

4条回答
  •  甜味超标
    2020-12-29 11:48

    The ApplicationController is here for that, since every Controller inherited from it.

提交回复
热议问题