app/helpers/orderable_helper.rb
# A button to clear out current orders. To be used in templates.
A button to clear out current orders. To be used in templates.
A button to clear out current orders . To be used in templates .
def order_button_desc(table_with_column)
    requested_order = { table_with_column => descending_order }
    new_hash = append_or_create_sort_hash(requested_order)
    map_of_values = { 'params' => new_hash, 'id' => "#{table_with_column}_desc_button",
                      'icon_class' => 'sort alphabet up icon' }
    link_with_icon(map_of_values)
  end
def order_button_desc ( table_with_column ) requested_order = { table_with_column => descending_order } new_hash = append_or_create_sort_hash ( requested_order ) map_of_values = { 'params' => new_hash , 'id' => "#{table_with_column}_desc_button" , 'icon_class' => 'sort alphabet up icon' } link_with_icon ( map_of_values ) end
A button to clear out current orders.
A button to clear out current orders .
table_with_column
<not_specific>