Hi Phil,
Preferences>Advanced>Shell Variables

add the following variable/value pair:

TM_RUBY   /Path/to/ruby

if you use ruby version manager you can add:

TM_RUBY   /Users/username/.rvm/bin/rvm-auto-ruby

which will automatically detect which version RVM is set to use and use that one in textmate.
Tim


On Mon, Nov 14, 2011 at 12:38 PM, Phil Dobbin <phildobbin@gmail.com> wrote:
Hi, all.

I've just started to use TextMate & I'm wondering how to get it to recognise
the Ruby version I use.

I've altered my $PATH in TM's Prefs to reflect the change, Terminal shows:

[Mon Nov 14 20:00:55 dobbin@darkstar:~ ] $ which ruby
/usr/local/rvm/rubies/ruby-1.9.3-p0/bin/ruby

but running the example script even with a shebang line returns this:

#!/usr/local/rvm/rubies/ruby-1.9.3-p0/bin/ruby

RUBY_VERSION # => "1.8.7"
data    = %w[one two three four five]
results = data.select { |n| n[0] == ?t } # => ["two", "three"]

Any help appreciated.

Cheers,

   Phil...


--
Nothing to see here... move along, move along


_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate