Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add agnostic_slugs #68

Open
lasseebert opened this issue Nov 9, 2014 · 0 comments
Open

Add agnostic_slugs #68

lasseebert opened this issue Nov 9, 2014 · 0 comments

Comments

@lasseebert
Copy link

I couldn't find a gem that generates slugs and is not either ORM-aware or monkey patches the String class. So I wrote it:

https://github.com/lasseebert/agnostic_slugs

slug = AgnosticSlugs::Slug.new('Look at my pretty new shoes! :)')
slug.to_s       # => "look-at-my-pretty-new-shoes"
slug.next.to_s  # => "look-at-my-pretty-new-shoes-2"

The gem is new and is for now only used on a staging site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant