Sign in through GitHub
watch on iTunes
follow on Twitter
follow on Facebook
subscribe to RSS feed
Browse Episodes
RailsCasts Pro
Notifications
About
Feedback
Jason Prins's Profile
GitHub User:
jasonprins
Comments by Jason Prins
Jason Prins
on
#63 Model Name in URL (revised)
2012-12-19 01:34:01
Try this:
ruby
validates_uniqueness_of
:slug
,
scope:
:parent_id
Try this: