How do I run Ruby tasks that use my Rails models?

后端 未结 9 1509
醉梦人生
醉梦人生 2021-02-01 08:58

I have a Rails app with some basic models. The website displays data retrieved from other sources. So I need to write a Ruby script that creates new instances in my database. I

9条回答
  •  误落风尘
    2021-02-01 09:18

    Nice Joyent write up of using rake to run rails tasks from a cron job - http://wiki.joyent.com/accelerators:kb:rails:cron

提交回复
热议问题