# Html.erb and textmate. Cant get snippets to work

**URL:** <https://www.ruby-forum.com/t/html-erb-and-textmate-cant-get-snippets-to-work/110063>\
**Category:** Rails\
**Created:** [July 22, 2007, 12:06pm UTC](https://www.ruby-forum.com/t/html-erb-and-textmate-cant-get-snippets-to-work/110063 "2007-07-22T12:06:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adammontgomery](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce7236/32.png) [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Post date:** [July 22, 2007, 12:06pm UTC](https://www.ruby-forum.com/t/html-erb-and-textmate-cant-get-snippets-to-work/110063/1 "2007-07-22T12:06:25Z")

</div>

Hello!

I moved to html.erb but the snippets fail to work.

eg  
.rhtml  
lia(tab) gives me link\_to

.html.erb  
lia with a tab after it =)

I have tried the comment suggested here:  
[http://ryandaigle.com/articles/2007/2/21/what-s-new-in-edge-rails-rhtml-and-rxml-to-die-a-slow-and-painful-death](http://ryandaigle.com/articles/2007/2/21/what-s-new-in-edge-rails-rhtml-and-rxml-to-die-a-slow-and-painful-death)

David D.:  
"

1. Select Bundles \> Bundle Editor \> Edit Languagesâ€¦ from the menu bar.
2. Find and un-collapse the Rails bundle in the left-hand list. 3.  
Select the â€˜Ruby on Railsâ€™ item. In the code editor at left, the second  
line should say `fileTypes = (â€˜rxmlâ€™);` Just change this to `fileTypes = ( â€˜rxmlâ€™, â€˜builderâ€™);`. 4. Select the â€˜HTML (Rails)â€™ item. Here weâ€™re  
doing pretty much the same thingâ€”change that second line to `fileTypes = (â€˜rhtmlâ€™,â€™erbâ€™)`. 5. Close the Bundle Editor window. Youâ€™re done.

From then on, any .erb or .builder files you open will be treated like  
the .rhtml and .rxml files theyâ€™re replacing.  
"

I tried both erb and html.erb for the HTML(rails) fileType, and reloaded  
bundles and restarted textmate.

Still nothing.

I would like to move to this extension format but will have to remain on  
rhtml until i can get the bundles working with it.

---

<div class="post-metadata">

**Author:** ![adammontgomery](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce7236/32.png) [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Post date:** [July 22, 2007, 12:36pm UTC](https://www.ruby-forum.com/t/html-erb-and-textmate-cant-get-snippets-to-work/110063/2 "2007-07-22T12:36:59Z")

</div>

I forgot to select HTML(rails) for the page.

problem solved.
