Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/HowTo.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This makes it super-easy to subclass the controllers and add some of your own be
### Example: Updating :last\_viewed\_at when a Post is viewed

class PostsController < Blogit::PostsController

helper Blogit::Engine.routes.url_helpers
def show
super do |post|
post.touch(:last_viewed_at)
Expand All @@ -25,4 +25,4 @@ Blogit comes with a CSS file for instant code syntax highlighting. Simply includ

/*
*= require pygments
*/
*/