RoR: friendly_id unique for user <p>I have a website that has works on the premise:</p> <p><code>example.com/user_id/news/slug-for-article</code></p> <p>By default, I have enabled unique slugs for articles, however I would like to have slugs unique per user, across all users.</p> <p>The non-uniqueness is handled by using <code>@user.articles.friendly.find(param)</code>.</p> <p>How can I set this up so it ensures uniqueness, but only for a defined attribute?</p>