Greetings,<div><br></div><div>I recently set up a new system with RVM and ruby 1.9.2 (default) as well as 1.8.7 and Rubinius. The system ruby is currently 1.8.7.</div><div><br></div><div>I followed the instructions here: <a href="http://rvm.beginrescueend.com/integration/textmate/">http://rvm.beginrescueend.com/integration/textmate/</a> to set up RVM and textmate to work and play nice together. These steps work and don't. </div>

<div><br></div><div>When I use the run command textmate execute the file using the correct ruby, for example the "puts RUBY_DESCRIPTION" returns the expected ruby 1.9.2. However, when I "Execute line/ selection as ruby" I still get ruby 1.8.7 (the system ruby). </div>

<div><br></div><div>Looking at the bundles the "Execute line/ selection as ruby" command starts with "#!/usr/bin/env ruby"</div><div><br></div><div>How should I modify the bundles such that it run the selection or line via the TM_RUBY environment variable rather than the system ruby?</div>

<div><br></div><div>Thanks!</div><div>Shane <br><a href="http://scr.im/shaneknysh">http://scr.im/shaneknysh</a><br>
</div>