Skip to content

Instantly share code, notes, and snippets.

@JRizzle88
Last active January 1, 2016 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JRizzle88/8151284 to your computer and use it in GitHub Desktop.
Save JRizzle88/8151284 to your computer and use it in GitHub Desktop.
uninitialized constant ActionView::CompiledTemplates::PROD_CAT_DISPLAY
<%= "<li" + (if url_category == category then " class='down-arrow'>" else ">" end) %>
<%= link_to PROD_CAT_DISPLAY[category], categories_path(:product_cat => category.downcase) %></li>
def get_category_display_text(url_text)
PROD_CAT_DISPLAY[url_text] || "Garments"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment