It is a memorandum.
ruby:show.html.erb
  <% @hoges.each do |hoge| %>
    <%= hoge.text %>
  <% end %>
ruby:show.html.erb
  <% @hoges.each do |hoge| %>
    <%= simple_format(hoge.text) %>
  <% end %>
Write the target code you want to display in parentheses in the form of simple_format ().
Recommended Posts