Use Enhanced Ruby Mode and Properly insert ends