class method self.erb_trim_mode=

Ruby on Rails edge

Since edge

Controls if certain ERB syntax should trim. It defaults to '-', which turns on trimming of trailing spaces and newline when using <%= -%> or <%= =%>. Setting this to anything else will turn off trimming support.

Source
# File actionview/lib/action_view/base.rb, line 201
      

Defined in actionview/lib/action_view/base.rb line 201 · 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