Module: Trestle::SortHelper
- Defined in:
- app/helpers/trestle/sort_helper.rb
Defined Under Namespace
Classes: SortLink
Instance Method Summary collapse
Instance Method Details
#sort_link(text, field, options = {}) ⇒ Object
3 4 5 6 |
# File 'app/helpers/trestle/sort_helper.rb', line 3 def sort_link(text, field, ={}) sort_link = SortLink.new(field, persistent_params, ) link_to text, sort_link.params, class: sort_link.classes end |