I have a Rails task: should I use script/runner or rake?

后端 未结 8 577
萌比男神i
萌比男神i 2020-12-07 16:08

For ad hoc Rails tasks we have a few implementation alternatives, chief among which would seem to be:

script/runner some_useful_thing
8条回答
  •  粉色の甜心
    2020-12-07 16:45

    In Rails 3.0+, the config/environment.rb requires the config/application.rb, that requires the config/boot.rb.

    So, to load an app in Rails 3, you still only have to require the environment.rb

提交回复
热议问题