Skip to content

Instantly share code, notes, and snippets.

@Fonsan
Created May 17, 2011 15:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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