开发者

Load application in console and use its environment

I try to write a little ruby script, which shall load a ruby application with the command load. That works fine.

But I want to use the loaded environment to run commands, but I don't know how to get it working.

It looks like:

load('script/开发者_JAVA百科console')
LoadedClass.find(1)

Is it possible?


You could write your script and then use the rails runner to run it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜