```ruby
module LiquidRenderer
  class Railtie < ::Rails::Railtie
    config.liquid_renderer = ActiveSupport::OrderedOptions.new

    initializer 'liquid_renderer.initialize' do |app|
      app.config.liquid_renderer.content_for_layout ||= 'content_for_layout'
      ActiveSupport.on_load(:action_controller) do
        require 'liquid'
        require 'liquid-renderer/render'

        ActionController::Renderers.add :liquid do |content, options|
          content_type = options.delete(:content_type) || 'text/html'
          status = options.delete(:status) || :ok
          render text: LiquidRenderer.render(content, options), content_type: content_type, status: status
        end
      end
    end
  end
end
```

Change text: to plain: for rails 5
user
```ruby
module LiquidRenderer
  class Railtie < ::Rails::Railtie
    config.liquid_renderer = ActiveSupport::OrderedOptions.new

    initializer 'liquid_renderer.initialize' do |app|
      app.config.liquid_renderer.content_for_layout ||= 'content_for_layout'
      ActiveSupport.on_load(:action_controller) do
        require 'liquid'
        require 'liquid-renderer/render'

        ActionController::Renderers.add :liquid do |content, options|
          content_type = options.delete(:content_type) || 'text/html'
          status = options.delete(:status) || :ok
          render plain: LiquidRenderer.render(content, options), content_type: content_type, status: status
        end
      end
    end
  end
end
```
assistant