The file you're editing needs the right extension (.rb
in your case) to make Textmate understand the right bundle to use.
What do you see down at the bottom of your TM window? (After Line# and Column#)?
Is that "Plain Text"
?
If you see something different from Ruby
or Ruby on Rails
click on the little up/down arrows on the right of It to open the dropdown list of bundles and select: Ruby
or Ruby on Rails
.
This way, when you hit TAB after writing "def
" It will auto-complete the method creation for you.
You can also check Bundles > Bundle editor > Edit snippets... (then choose Ruby) to see if you have the snippet "def" configured to being fired when you hit TAB (see under Declaration > Methods).