درس قبلی
A Thread Should Have a Unique Slug: Part 2

A Thread Should Have a Unique Slug: Part 2

A Thread Should Have a Unique Slug: Part 2

قسمت 76
درس بعدی

درباره این درس

At this point, we are generating slugs for each new thread; however, what happens if multiple threads have the same title? Everything will blow up, that's what! It sounds like we need to detect existing slugs in the database, and apply an increment to the slug. View the source code for this episode on GitHub.
دیدگاه های کاربران

× در حال پاسخ به: