small doc fix for readme step 4

This commit is contained in:
Torsten Ruger 2016-12-03 18:48:36 +02:00
parent b96921d24c
commit 6f2783a945
1 changed files with 6 additions and 5 deletions

View File

@ -93,7 +93,8 @@ Usage
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 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) to log impressionist this way, as params[:id] will return a string(url slug)
while impressionable_id is a Integer column in database. while impressionable_id is a Integer column in database. Also note that you
have to take step #3 for the Widget model for this to work.
def show def show
@widget = Widget.find @widget = Widget.find