开发者

Is it possible to load the rails environment into Textmate?

开发者 https://www.devze.com 2023-03-12 19:39 出处:网络
I spend alot of time in rails console, but when I have something to work out that doesn\'t involve rails it\'s even easier to create tests at the bottom of the .rb file, and just command-R to run it i

I spend alot of time in rails console, but when I have something to work out that doesn't involve rails it's even easier to create tests at the bottom of the .rb file, and just command-R to run it in Textmate.

It would be amazing and really speed up my workflow if I could do the same with classes that depend on my rails environment being loaded. Is there an include I could temporarily put in a f开发者_JS百科ile that would load what I need?


I have done this both with rails 2 and 3 by requiring "./config/environment.rb".

0

精彩评论

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