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

后端 未结 9 1321
醉梦人生
醉梦人生 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:27

    I wrote up a post about this a while back.

    http://www.rawblock.com/2007/06/14/ruby-oracle-mac-os-x-pain-jruby-and-activerecord-jdbc-to-the-rescue/

提交回复
热议问题