On 28 Oct 2010, at 21:12, Martin wrote:
[...] I'm having a similar problem with the ruby on rails bundle when generating partials (shift-ctrl-h) and using ruby 1.9.x. I set TM_RUBY with rvm to several versions. ruby 1.8.7 runs fine, every 1.9.x not.
I don't want to set TM_RUBY to 1.8.7 because then every script I run with cmd-r uses also 1.8.7.
Isn't there a other solution?
I think you have it backwards.
You should set your PATH so that ruby 1.8.x is found first.
Then set TM_RUBY to your 1.9.x ruby.
That way, all commands in TextMate should use 1.8.x but command R will use 1.9.x for your own scripts.