I can't create new files from within Textmate. I'm not sure why it's doing this or how to go about fixing it.

I recently changed the "Shell Variables" because certain functions weren't working like the "Comment Line" ⌘/, and other stuff. It would say something like 

```
env: ruby: no such file or directory

```

Ruby 1.8 is installed in `/opt/local/bin/ruby`. I recently installed Ruby 1.9 through RVM, but I was just following directions and don't know where it is installed, or if it is even being used.

![Here is what my Shell Variables currently look like](https://i.stack.imgur.com/fy2ZQ.png)

I don't really know much about path dependencies and such. I searched for "`ruby`" in the Finder and there are 16 folders titled "ruby" or "Ruby", but they all stem from that original path `/opt/local/bin/ruby`. What should I do to get Textmate working again? Is it something to do with where I have Ruby installed?

I followed the instructions on "[TextMate 'env: ruby: No such file or directory'](http://michaelfarmer.info/blog-101)" when trying to fix the "Comment Selection" function in TextMate.

---

UPDATE:

I just found on the "[TextMateAndThePath](http://wiki.macromates.com/Troubleshooting/TextMateAndThePath)" page on Textmate's help wiki that

> 
> There can be many files named ruby on the system, but only one file can exist at the path /usr/bin/ruby
> 
> 
> 

When I run `type ruby` at the command line, it returns two `/opt/local/bin/ruby` paths.
Is this what is breaking Textmate, and if so what can I do about it?