From 2bb18c0d95fbc4e54792803bad514822deeb305e Mon Sep 17 00:00:00 2001 From: Qihuan Piao Date: Thu, 17 Apr 2014 17:03:48 +0900 Subject: [PATCH] Update README.md for usage with friendly_id --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 13a56cc..f458b46 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,10 @@ Usage not necessary to specify "impressionist" (usage #1) in the top of you controller if you are using this method. If you add "impressionist" to the top of your controller and also use this method in your action, it will - result in 2 impressions being logged (but associated with one request_hash) + result in 2 impressions being logged (but associated with one request_hash). + If you're using [friendly_id](https://github.com/norman/friendly_id) be sure + to log impressionist this way, as params[:id] will return a string(url slug) + while impressionable_id is a Integer column in database. def show @widget = Widget.find