Forum: Ruby on Rails html.erb and textmate. Cant get snippets to work.

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
812d47a4d6c863de5059670b1e33014f?d=identicon&s=25 Adam madd02 (madd02)
on 2007-07-22 12:06

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

lia(tab) gives me  link_to

lia with a tab after it =)

I have tried the comment suggested here:

David Demaree:
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 
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.
812d47a4d6c863de5059670b1e33014f?d=identicon&s=25 Adam madd02 (madd02)
on 2007-07-22 12:36
I forgot to select HTML(rails) for the page.

problem solved.
This topic is locked and can not be replied to.