From 2e0f29da0974d545a818ec2fd1b6bec2b8e1e8eb Mon Sep 17 00:00:00 2001 From: cowboycoded Date: Sat, 12 Feb 2011 09:52:04 -0500 Subject: [PATCH] more formatting --- README.rdoc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.rdoc b/README.rdoc index bae1738..b334188 100644 --- a/README.rdoc +++ b/README.rdoc @@ -68,17 +68,13 @@ The following fields are provided in the migration: impressionist :actions=>[:show,:index] end -3. Make your models impressionable. This allows you to attach impressions to an AR model instance. -Impressionist will automatically log the Model name (based on action_name) and the id (based on params[:id]), but in order to get the count of -impressions (example: @widget.impression_count), -you will need to make your model impressionalble +3. Make your models impressionable. This allows you to attach impressions to an AR model instance. Impressionist will automatically log the Model name (based on action_name) and the id (based on params[:id]), but in order to get the count of impressions (example: @widget.impression_count), you will need to make your model impressionalble class Widget < ActiveRecord::Base is_impressionable end -4. Log an impression per model instance in your controller. Note that it is 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) +4. Log an impression per model instance in your controller. Note that it is 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) def show @widget = Widget.find