to_slug
to_slug copied to clipboard
Rails plugin that adds a to_slug method to String instances. Slugs can be used for URLs, since all 'dangerous' characters have been filtered out.
Results
1
to_slug issues
Sort by
recently updated
recently updated
newest added
I made a version of to_slug that allows for unicode glyphs and url-safe symbols in the slug: ``` def to_slug # become case-insensitive value = self.mb_chars.downcase # replace any spaces,...