Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

What gives. I'm obviously being really thick.

I open a file using TextMate (mate r1577 (2010-11-18)) on Mac OS X (10.5.8)

When I try and use tab to complete a snippet, for example vp<TAB> does not expand to the validates_presence_of rails snippet I expected ?

Is there something I need to do to turn it on?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Make sure TextMate has recognized the language used in file as Ruby on Rails and not just Ruby. Along the bottom of the editor window, towards the left side, TextMate tells you what language it thinks the file is you're editing. For example, here it has detected Python:

alt text

If you click on that language name you'll get a list of languages to choose from. Choose Ruby on Rails and TextMate will load the snippets for developing a Rails application.

share|improve this answer
    
Thanks for helping a TextMate newbie out :-) –  toolkit Dec 14 '10 at 0:23
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.