TextMate : refactor view into partial
In your rails view (rhtml/ERb), select a bunch of text, then hit Ctrl+Shift+H, type in the name of a partial, and you’ve instantly created a new partial file, and replaced the current code block with a call to the partial. I discovered this one by total accident. I think it should be more publicized as it is an extremely easy way to ‘refactor’ views that is not available (afaik) in any other rails IDE. Now what we need is some more ruby refactoring macros!










No Comments Yet