Yan Pritzker photographer, entrepreneur, software engineer, musician, skier

Blog :: Git Workflows Book :: Dotfiles :: Photography :: About Me

TwitterCounter for @skwp

Get the news feed
Get updates by email
Follow me on twitter

hello, i'm yan

I am a photographer, entrepreneur, software engineer, guitarist, climber, and telemark skier

This blog is about startups, blogging, Ruby On Rails, virtualization and cloud computing, photography, customer service, marketing, ux and design, git, and lots more.

Enterprise intelligence with prediction markets

Find out what your team, colleagues and partners really know about the future — and leverage their knowledge to improve business decisions.

I'm the founder of Planypus, the place to share your plans!

Archives

Contact

Reach me at yan at pritzker.ws

TextMate : refactor view into partial

Posted 8 September 2006 @ 11pm | Tagged thoughts


Submit to HN

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


There are no comments yet. You could be the first!

Leave a Comment