Add a second %
to the opening tag:
label:
body: "<%%= variable %>"
The <%%
sequence is valid ERB, rendered as a literal <%
.
More Related Contents:
- What is the difference between
- raw vs. html_safe vs. h to unescape html
- What does do in rails erb?
- Mysql2::Error::ConnectionError: Access denied for user
- How to avoid NoMethodError for missing elements in nested hashes, without repeated nil checks?
- Unable to install gem – Failed to build gem native extension – cannot load such file — mkmf (LoadError)
- Singular or plural controller and helper names in Rails
- Rails: confused about syntax for passing locals to partials
- TZInfo::DataSourceNotFound error starting Rails v4.1.0 server on Windows
- How to determine if one array contains all elements of another array
- Ruby on Rails: Submitting an array in a form
- Weird “406 not acceptable” error
- How can I test the page title with Capybara 2.0?
- What does “WARN Could not determine content-length of response body.” mean and how to I get rid of it?
- Rails new vs create
- Parse a string as if it were a querystring in Ruby on Rails
- Where is the Rails method that converts data from `datetime_select` into a DateTime object?
- Encoding Ruby on Rails code?
- Rails detect if request was AJAX
- AWS S3: The bucket you are attempting to access must be addressed using the specified endpoint
- How to check for a JSON response using RSpec?
- How to use Active Support core extensions
- Rails: PG::UndefinedTable: ERROR: relation “…” does not exist
- How Do I Use Factory Girl To Generate A Paperclip Attachment?
- Ruby on Rails Bootstrap Glyphicons not working
- Rails Devise: after_confirmation
- How to get rid of OpenSSL::SSL::SSLError
- Rails 3.1 include_root_in_json
- getaddrinfo: nodename nor servname provided, or not known
- Why should we avoid using class variables @@ in rails?