class method self.erb_implementation=

Ruby on Rails edge

Since edge

Signature

self.erb_implementation=(implementation)

The ERB implementation used to compile templates. Accepts :erubi, :herb, or a class. With :herb, templates with the HTML format compile through Herb and every other format compiles through Erubi. Defaults to Erubi.

Parameters

implementation req
Source
# File actionview/lib/action_view/base.rb, line 221
      def erb_implementation=(implementation)
        ActionView::Template::Handlers::ERB.erb_implementation =
          case implementation
          when :erubi
            ActionView::Template::Handlers::ERB::Erubi
          when :herb
            ActionView::Template::Handlers::ERB::Herb
          when Symbol
            raise ArgumentError, "erb_implementation must be :erubi, :herb, or a class, " \
              "got #{implementation.inspect}"
          else
            implementation
          end
      end

Defined in actionview/lib/action_view/base.rb line 221 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionView::Base

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close