textmate rails bundle
|
|
i opened an existing rails project in textmate. the “ruby” bundle seems to be activated, but the “rails” one does not. for instance, typeing R A [TAB] gives me nothing except an ‘R’, an ‘A’ and a TAB. which is not what i’m expecting! am i missing something? i’m running an unregistered copy of TM at the moment. |
|
|
Jon: the snippets functionality depends upon what type of file you’re editing. Are you trying the “ra” snippet in a .rb file, or a .rhtml file? (It only works in a .rb file.) More specifically, there is a little drop-down at the bottom of the code editor window… it will say what type of file it thinks it is (e.g. “Ruby on Rails”, “HTML (Rails)”, etc.) If I’m way off base and you’ve already tried all this, make sure that the snippet you’re expecting to work is actually installed by going to Bundle -> Bundle Editor -> Edit Snippets. Ensure that the snippet is there and works in the context you’re expecting. Remember, you can always create a copy of the snippet (I like to store my customized snippets in my own folder under the Bundle Editor) and change it to suit your needs. |
|
|
Thanks Brian! I’ve been wondering why Textmate didn’t give me the snippets functionality. I didn’t clue in that it had different settings for Ruby and RoR. HM [TAB] works great now! |