textmate作为rails开发的利器对开发者来说最有价值的一点即可以自定义bundle然后添加snippet, command等等。今天将我常用的一些自定义的rails相关的bundle放到了github上边,感兴趣的朋友可以去看看 。现在的内容还不是很多,不过这两天抽空会大幅度的更新。
在最近使用edge rails(rev.7167)的过程中,发现edge rails有几个显著的变化,其中最为明显的莫过于:新的generator 生成的view文件的后缀名由 rhtml 变成了 html.erb .暂且不讨论这种变化本身的意义,我第一个想到的问题就是: 我的textmate 是否能够将 html.erb 文件等同鱼rhtml处理,也就是所有的rails的snippets, templates, etc是否好用。在google了一下以后,找到了一篇blog , 里边的第五条comment给出了解决textmate对于html.erb文件支持问题的方法。在这里简单的总结一下:
open textmate → Bundles → Bundles editor → Edit languages
open “Rails” on the left panel list, and there should be three sub-items there.
click “Ruby on Rails”, and edit the content appears on the right, changing
“fileTypes = ( ‘rxml’);” at the [...]