simple_format()を使うと良い
text内でhtml記法が適用されます
text.html.erb
<%= simple_format(@article.text) %>
More than 5 years have passed since last update.
simple_format()を使うと良い
text内でhtml記法が適用されます
<%= simple_format(@article.text) %>
Register as a new user and use Qiita more conveniently