Method: Thredded::ApplicationHelper#thredded_page

Defined in:
app/helpers/thredded/application_helper.rb

#thredded_page(&block) ⇒ Object

Render the page container with the supplied block as content.



29
30
31
32
33
34
# File 'app/helpers/thredded/application_helper.rb', line 29

def thredded_page(&block)
  # enable the host app to easily check whether a thredded view is being rendered:
  content_for :thredded, true
  content_for :thredded_page_content, &block
  render partial: 'thredded/shared/page'
end