-i = 0
%table.table
  -@csv.each do |row|
    -if row["locale"] and row["key"] and row["value"]
      -if !specific_preference.where(:locale => row["locale"], :key => row["key"]).first
        -t = specific_preference.create(:locale => row["locale"], :key => row["key"], :value => row["value"])
        -if t
          -i += 1
          %tr
            %td=t.locale
            %td=t.key
            %td=t.value

%p
  =i 
  importés
  
Toutes les valeurs du fichier
%table.table
  -@csv.each do |row|
  
    -if row["locale"] and row["key"] and row["value"]
      %tr
        %td=row["locale"]
        %td=row["key"]
        %td=row["value"]
        %td 
          -if t = specific_preference.where(:locale => row["locale"], :key => row["key"]).first
            =t.value 
