Since the code isn't whitespace significant we don't need to deindent this heredoc, no one will ever see the code it generates and it works the same with or without the indentation. Or you could gsub out the whitespace

```ruby
        controller :omg, <<-RUBY.gsub(/^ {10}/, '')
          class OmgController < ApplicationController
            def index
              Rails.logger.info "HI MOM"
              render text: "omg"
            end
          end
        RUBY
```