Hi, I’m running into a problem when I try to do in place editing with
the simple_format helper. What the helper does is take form input and
turn carriage returns into separate list elements (so when a person
fills out a form and hits enter, each line is it’s own list item).
Unfortunately, when I try to do in_place_editor_field with the data that
has the line breaks, it completely ignores them, instead of putting the
elements back on their own line.
Is there a way to combine in_place_editor_field and a simple_format
helper?
Here’s a snippet from the view as an illustration of the problem:
<%= in_place_editor_field :recipe, :ingredients %>
<%= simple_format(@recipe.ingredients) %>
= ??
Thanks!
Dave