In VIM, at the moment when I need to comment out a section of Ruby code:
I like using the following:
That says, from the line containing marker "a", up to the current line, substitute a hash for the beginning of the line.