norman/friendly_id — Issue #179: scope, and scope with a habtm
Author: jdkealy
Created: 2011-11-03 14:34:31+00:00
State: open

Hi,

I'm trying to use scope for friendly id from the latest Gem.

I''ve tried it like this (from the docs)

friendly_id :title, :use => :scoped, :scope => :parent_id

I got undefined method friendly_id,

then figured maybe they were out of date and tried like this:

has_friendly_id :title, :use_slug => true, :use => :scoped, :scope => :parent↷

Then i got undefined method 'use'.

Ideally I would like to be able to make an id unique based on a habtm.

I'm making multiple websites manage pages and i want there to be only one 'about' page for a specific website, for example. any way to do this with friendly_id?