class method
self.erb_implementation=
Ruby on Rails edge
Since edgeSignature
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
-
implementationreq
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