module Sort::LinkForHelper
Public Instance Methods
sort_link_for(attribute, name = nil, **attributes)
click to toggle source
# File lib/action_set/helpers/sort/link_for_helper.rb, line 11 def sort_link_for(attribute, name = nil, **attributes) link_to(name || attribute.to_s.titleize, sort_path_for(attribute), **attributes.merge( 'aria-label': sort_description_for(attribute) )) end