阅读背景:

Rail 4无法在lib文件夹中的脚本中加载Model

来源:互联网 

I want to create some scripts in lib folder which should insert/update data in my db. I would like to use my models but they are not loaded when I try to use them. These scripts are not related to the application, they are cronjobs. What is the best behavior to implement this logic? Thanks in advance!I want to create some scripts in lib folder whi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: