Problem: When entering a tab trigger as shown in the Rails menu and pressing tab (⇥) then a literal tab is inserted.

Solution: Switch language to Ruby on Rails by clicking the language pop-up selector in the status bar.

This will instruct TextMate to treat your “.rb” files as Rails files (no, you won’t have to do this for each file opened, the change is sticky.)