Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Jason Prins's Profile

GitHub User: jasonprins

Comments by Jason Prins

Avatar

Try this:

ruby
validates_uniqueness_of :slug, scope: :parent_id