 <p>I haven't used sublime, but here is what i found.</p> <ol> <li><p>you could create snippets using Ruby on <a href="https://sublime.wbond.net/packages/Ruby%20on%20Rails%20snippets" rel="nofollow">Rails Snippet</a> package</p></li> <li><p>You could use the solution given in '<a href="http://www.sublimetext.com/forum/viewtopic.php?f=2&amp;t=8302" rel="nofollow">How to automatically add "end" to code blocks?</a>'.</p></li> </ol>