Sortable_column_header

Is there any way to make the plugin attach a class to its link?
(mainly sort direction).

This is rather ugly, looking for the purist way…

<%= link_to 'Name', sort_param('search', Directory, 'name'), { :class => sort_param('', Directory, 'name' ).to_s.sub(/^(.+)-.+/, '\1') } %>

yields:

...

–
Anthony E.
408-656-2473
http://anthony.ettinger.name