mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-18 22:37:53 -05:00
13 lines
315 B
Plaintext
13 lines
315 B
Plaintext
- content_for :title, "Forums"
|
|
|
|
- @forums.each do |forum|
|
|
%h2= forum
|
|
%p
|
|
= pluralize(forum.posts.count, "post")
|
|
|
|
|
=link_to "Visit forum", forum
|
|
|
|
|
=link_to "Post", new_post_path(:forum_id => forum.id)
|
|
=render :partial => "posts/summary", :locals => { :posts => forum.posts, :howmany => 4 }
|
|
|