method

to_sentence

Importance_1
v5.2.3 - Show latest stable - 0 notes - Class: OutputSafetyHelper
to_sentence(array, options = {}) public

Converts the array to a comma-separated sentence where the last element is joined by the connector word. This is the html_safe-aware version of ActiveSupport’s Array#to_sentence

Show source
Register or log in to add new notes.