Module: Trestle::SortHelper

Defined in:
app/helpers/trestle/sort_helper.rb

Defined Under Namespace

Classes: SortLink

Instance Method Summary collapse

Instance Method Details


3
4
5
6
# File 'app/helpers/trestle/sort_helper.rb', line 3

def sort_link(text, field, options={})
  sort_link = SortLink.new(field, persistent_params, options)
  link_to text, sort_link.params, class: sort_link.classes
end