mynameisrufus/sorted — pull request #8 by burlesona (2012-06-12 03:30:35+00:00)
Title: Added convenience method for creating sort link menus.

Thanks for making this very helpful gem. I use it in a lot of my apps, and in each of them I've been using this helper method to quickly spit out a menu of sort links. I thought it might be useful to others.

# Basic usage
sortable_by :first_name, :last_name

# Label override
sortable_by :title, :author_name, ["Publication Date", :published_at]

Re: specs -- I don't really know how to do view helper testing in a plugin, I tried to copy your specs for `link_to_sorted` but didn't see (or perhaps understand) them. If you have suggestions on this let me know.