Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .