Code Editor for Ruby both .rb and .rhtml

Textmate.

And if you don’t have a Mac, there’s always Vim.

How about emacs? It's everywhere.

Blessings! Matt