Similar to the Line part, however instead of a simple textfield, it uses a textarea to store a multiple lines of text.
Use the content
helper method to render lines. You may also want to use simple_format
so that break lines are respected.
config.parts = [
# ...
{
name: "teaser",
title: "Teaser",
part_type: "Spina::Parts::MultiLine"
}
]
<p><%= simple_format content(:teaser) %></p>