class String

Public Instance Methods

slugify_html() click to toggle source

convert “name1” to “name1_name2”

# File lib/action_presenter/ruby/string.rb, line 3
def slugify_html
  scan(/[A-Za-z0-9]+/).join("_").underscore
end