Commit Graph

4 Commits

Author SHA1 Message Date
Ryan Bigg 25ba7e3a8f Add ability to use a named route when using sort_link
For example,

sort_link [:engine, Engine::Model.search]

Will use the engine's routing to determine where the route should go. The :engine symbol here should be the name of your engine, i.e. the engine_name setting which generally defaults to the downcased version of your engine's module.

Addresses problem discussed in #84.
2012-03-29 08:01:22 -05:00
Ernie Miller f6973b3a3b Initial work on sort_link. Mostly ported from MetaSearch, changes coming soon 2011-08-13 16:36:40 -04:00
Ernie Miller cef7b8ecea Workaround for 3.0 not having param_key and fix valid? on attr/sort 2011-04-18 13:59:47 -04:00
Ernie Miller 294015309b Initial commit. 2011-03-30 20:31:39 -04:00