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(table_with_column, order)
    if order == descending_order
      order_button_desc(table_with_column)
    elsif order == ascending_order
      order_button_asc(table_with_column)
    end
  end
def order_button ( table_with_column , order ) if order == descending_order order_button_desc ( table_with_column ) elsif order == ascending_order order_button_asc ( table_with_column ) end end
A button to clear out current orders.
A button to clear out current orders .
table_with_column
<not_specific>
order
<not_specific>