Permalink
Browse files

Updated readme to reflect fork's update #find.

  • Loading branch information...
1 parent 36028de commit dde36a117902eb14a4f047071da378fe69596a4b @mattscilipoti committed Sep 23, 2010
Showing with 12 additions and 0 deletions.
  1. +12 −0 README.md
View
@@ -1,3 +1,15 @@
+# This is a fork!
+We forked friendly_id in order to allow #find
+to locate a model by friendly_id_column,
+even if it is cached or :use_slug => true.
+
+For instance:
+ User has_friendly_id :user_name,:use_slug => true
+ u =User.create!(:user_name => "Henry Ford")
+ User.find(1) --> works
+ User.find('henry-ford") --> works
+ User.find('Henry Ford") --> ActiveRecord::RecordNotFound: Couldn't find User with ID=Henry Ford
+
# FriendlyId
FriendlyId is the "Swiss Army bulldozer" of slugging and permalink plugins for

0 comments on commit dde36a1

Please sign in to comment.