Browse files

mod: add read_count for page

  • Loading branch information...
1 parent 72f87ec commit 092c4ac591647d1f2259e0d94f54a9fb11e24996 @IceskYsl committed Jul 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/pages_controller.rb
View
2 app/controllers/pages_controller.rb
@@ -3,7 +3,7 @@ class PagesController < ApplicationController
def show
@page = Page.find_by_slug(params[:id])
render_404 if @page.nil?
- @post.hits_incr
+ @page.hits_incr
end
end

0 comments on commit 092c4ac

Please sign in to comment.