method

dasherize

dasherize(underscored_word)
public

Replaces underscores with dashes in the string.

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