lib/unobtrusively_sortable/helpers.rb
def sortable_handles(e, options)
      returning("") do |out|
        out << button_to("&uarr;", options[:url] + "?direction=up&id=#{e.id}") unless e.first?
        out << " "
        out << button_to("&darr;", options[:url] + "?direction=down&id=#{e.id}") unless e.last?
        out << " "
      end
    end
# Renders the <ul>-list that contains the sortable elements. 'Elements' is
# an array of ActiveRecord instances.
Renders the -list that contains the sortable elements. 'Elements' is
an array of ActiveRecord instances.
Renders the - list that contains the sortable elements . ' Elements ' is an array of ActiveRecord instances .
def sortable_handles(e, options)
      returning("") do |out|
        out << button_to("&uarr;", options[:url] + "?direction=up&id=#{e.id}") unless e.first?
        out << " "
        out << button_to("&darr;", options[:url] + "?direction=down&id=#{e.id}") unless e.last?
        out << " "
      end
    end
def sortable_handles ( e , options ) returning ( "" ) do | out | out << button_to ( "&uarr;" , options [ :url ] + "?direction=up&id=#{e.id}" ) unless e . first? out << " " out << button_to ( "&darr;" , options [ :url ] + "?direction=down&id=#{e.id}" ) unless e . last? out << " " end end
Renders the <ul>-list that contains the sortable elements.
Renders the <ul > - list that contains the sortable elements .
e
options