From the author himself (Google is your friend; this is a top result when searching friendly_id disable find id
): https://github.com/norman/friendly_id/issues/146
What version of FriendlyId?
With 4.x, just use find_by_slug rather than find.
With 3.x you can use find_by_cached_slug, or check the friendly_id_status of the found result and raise an error if the record was found using something other than the friendly id.
Either way, you need to replace occurences of find
with one of the alternatives above to tell your application to ignore the :id
column.