plaintext_controller.rb 202 B

123456789
  1. # frozen_string_literal: true
  2. class PlaintextController < ApplicationControllerMetal
  3. def index
  4. add_headers
  5. self.content_type = 'text/plain'
  6. self.response_body = 'Hello, World!'
  7. end
  8. end