Skip to content

Instantly share code, notes, and snippets.

@Fonsan
Created May 17, 2011 15:43
Show Gist options
  • Save Fonsan/976718 to your computer and use it in GitHub Desktop.
Save Fonsan/976718 to your computer and use it in GitHub Desktop.
module MetaSearch
module Helpers
module UrlHelper
def order_indicator_for(order)
if order == 'asc'
'▲' # replace this with a string or nil
elsif order == 'desc'
'▼' # replace this with a string or nil
else
nil
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment