Skip to content

Instantly share code, notes, and snippets.

@Soldo
Created March 26, 2012 08:00
Show Gist options
  • Save Soldo/2203820 to your computer and use it in GitHub Desktop.
Save Soldo/2203820 to your computer and use it in GitHub Desktop.
app/views/refinery/_content_page.html.erb
<%= render_content_page(@page, {
:hide_sections => local_assigns[:hide_sections],
:can_use_fallback => !local_assigns[:show_empty_sections] && !local_assigns[:remove_automatic_sections]
}) %>
<%= render :partial => '/refinery/draft_page_message' unless @page.nil? or @page.live? -%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment