Skip to content

Instantly share code, notes, and snippets.

@edtjones
Created August 22, 2013 14:23
Show Gist options
  • Save edtjones/6307837 to your computer and use it in GitHub Desktop.
Save edtjones/6307837 to your computer and use it in GitHub Desktop.
<%= link_to (toc_item[:title].encoding == 'UTF-8') ? toc_item[:title] : "#{toc_item[:title].encoding} WAAAH", document_page_path(@document,toc_item[:id]) %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment