Here’s the code to realise nl2br
of PHP in Rails.
Environment
(Unless Rails changes considerably), it can be used in most versions.
- Rails 4.2.5
- Ruby 2.0.0
Here’s the code to realise nl2br
of PHP in Rails.
(Unless Rails changes considerably), it can be used in most versions.