mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-08-07 05:13:37 -04:00
Send "N comments" links to the comments anchors.
We have to call post.save in the posts/index specs, because post_path fails unless the post has been persisted (and hence had its slug generated). I think. That fixed the failing tests, anyway.
This commit is contained in:
1 parent
e7a1beb323
commit
e470cf7358
3 files changed
+7
-8
No files matched your search
@@ -24,7 +24,8 @@
|
||||
- unless defined?(hide_comments)
|
||||
.post-comments
|
||||
%ul.inline
|
||||
%li.first= link_to pluralize(post.comments.count, "comment"), post
|
||||
%li.first= link_to pluralize(post.comments.count, "comment"),
|
||||
post_path(post, :anchor => 'comments')
|
||||
-if can? :create, Comment
|
||||
%li= link_to "Reply", new_comment_path(:post_id => post.id)
|
||||
%li= link_to "Permalink", post
|
||||
|
||||
Reference in new issue
Block a user