Skip to content

Commit aa306d4

Browse files
committed
Permalinks now link correctly, whoops!
1 parent 11306bc commit aa306d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

views/posts/index.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
%h1= post.title
55
- markdown = RDiscount.new(post.body, :smart, :filter_html)
66
%p!= markdown.to_html
7-
%a{:href => "/posts/#{post.id}"}= "#{post.comments.count} comments"
7+
%a{:href => "/posts/#{post.slug}"}= "#{post.comments.count} comments"
88
%hr

0 commit comments

Comments
 (0)