Skip to content

Instantly share code, notes, and snippets.

@nisevi
Last active April 14, 2018 10:19
Show Gist options
  • Save nisevi/8126f1616b0b1a994673ab8357952691 to your computer and use it in GitHub Desktop.
Save nisevi/8126f1616b0b1a994673ab8357952691 to your computer and use it in GitHub Desktop.
Action rendering the static content.
def show
return false if redirect_email_blunder
@page = StaticPage.friendly.find(get_page_id(params[:id]))
@ancestry = @page.self_and_ancestors.map(&:title).reverse
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment