%table.table#products
  %thead
    %tr
      %th Réseau
      %th
      %th
        Catégorie
      %th
        Nom du produit
      %th
  %tbody.products_sortable=render @products


:coffeescript

  adjustment = ""

  $('.products_sortable').sortable({
    itemSelector:".gallery_image",
    stop: (event, ui) ->

      result = []
      $(".product_row").each ->
        result.push $(this).data("id")
      

      $.ajax({
        url:"/admin/products/reorder.js", 
        type: "POST",
        data: { 
          products_ids : result,
          test: "jj"
          } 
  
      })
  });