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

Edit slugs #2

Open
LimeBlast opened this issue Mar 9, 2010 · 0 comments
Open

Edit slugs #2

LimeBlast opened this issue Mar 9, 2010 · 0 comments

Comments

@LimeBlast
Copy link

Hi, I'm using Sluggable Behavior on my project, and I love it - but I have a question.

Upon adding to the database the slug gets generated automatically, but if editing a post, it doesn't. I.e. if I create a record, then go in to edit it, delete the text from the slug field, then save it, a new slug isn't generated.

Is there anyway that I can change this? I.e. if a slug exists when updating a record, leave it as it is, but if editing a record, upon deleting the slug, having a new one generated from the title.

I hope you know what I mean.

Thank you

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