# Receive Slack commands and validate correct tokens.
class SlackCommandController < ApplicationController
  def create
    render text: handler.response.to_s
  end

  private

  def handler
    @handler ||= SlackResponder::CommandHandler.new
  end
end

# Receive Slack commands and validate correct tokens.
class SlackCommandController < ApplicationController
  def create
    render plain: handler.response
  end

  private

  def handler
    @handler ||= SlackResponder::CommandHandler.new
  end
end

Update to correct rendering style for Rails API
Update to correct rendering style for Rails API
