module ActiveSupport::Inflector

def dasherize(underscored_word)

dasherize('puni_puni') # => "puni-puni"

Replaces underscores with dashes in the string.
def dasherize(underscored_word)
  underscored_word.tr("_", "-")
end