method

dasherize

v4.0.2 - Show latest stable - Class: String
dasherize()
public

Replaces underscores with dashes in the string.

'puni_puni'.dasherize # => "puni-puni"