lib/vidibus/core_extensions/string.rb
# Returns a string that may be used as permalink
Returns a string that may be used as permalink
Returns a string that may be used as permalink
def permalink
    latinize.
      downcase.
      gsub(/[^a-z0-9]+/, "-").
      gsub(/^-/, "").gsub(/-$/, "")
  end
def permalink latinize . downcase . gsub ( / [^a-z0-9]+ / , "-" ) . gsub ( / ^- / , "" ) . gsub ( / -$ / , "" ) end
Returns a string that may be used as permalink
Returns a string that may be used as permalink