Module: Cornerstone::DiscussionsHelper

Defined in:
app/helpers/cornerstone/discussions_helper.rb

Instance Method Summary collapse

Instance Method Details

#latest_discussion_details(category) ⇒ Object

Returns details and links about the latest discussion for a given category



5
6
7
8
9
10
11
12
# File 'app/helpers/cornerstone/discussions_helper.rb', line 5

def latest_discussion_details(category)
  if discussion = category.latest_discussion
    render :partial => 'latest_discussion', :object => discussion,
                                            :locals => {:category => category}
  else
    "N/A"
  end
end