Skip to content

Instantly share code, notes, and snippets.

@zwily
Created January 19, 2012 17:50
Show Gist options
  • Save zwily/1641427 to your computer and use it in GitHub Desktop.
Save zwily/1641427 to your computer and use it in GitHub Desktop.
def index
return unless tab_enabled?(@context.class::TAB_PAGES)
redirect_to named_context_url(@context, :context_wiki_page_url, 'front-page')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment