Powered By BlogNow - Get Your Free Blog

I have moved!

My new blog is at lindsaar.net

All the old content will stay here though. But check out the new blog

¿ 16/10/2007 - RSpec, Rails, Ruby and Textmate File Associations

I have been having a problem with Textmate.

Basically, when you are using Textmate in Rails with RSpec, you have to keep telling textmate which is Rails and which files are RSpec.  Problem is, they both have the same extension (.rb) so you run into problems and constantly have to change bundle selections to make it work.

The handling?

Well, I headed over to the #textmate channel on freenode, and asked.  Mr Allan Odgaard himself (the author) helped me out... and solved the problem!

Make the default scope Rails and then modify the Rails and Ruby language definitions to remove .rb from Ruby and add .rb to Rails.

(obviously you can change this back if you need to)

If you have a similar problem, head over to his blog to get the solution with the full explanation of why it is so.


blogLater

Mikel
Post A Comment! :: Send to a Friend!

About Me

AKA Raasdnil, this site is about web coding, hosting and all other matters that relate to this... especially Ruby on Rails!

Links