Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

mod: add read_count for page

  • Loading branch information...
commit 092c4ac591647d1f2259e0d94f54a9fb11e24996 1 parent 72f87ec
@IceskYsl authored
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.
Something went wrong with that request. Please try again.