Adjust the has_slug method in your models accordingly to specify the attribute for generating the slug
Techvoot solutions
MIT