Fixed encoding issues with ruby > 1.9.2..

This commit is contained in:
benni 2012-04-16 08:48:01 +02:00
parent ad508b207b
commit 4a8e286d98
18 changed files with 29 additions and 40 deletions

View file

@ -15,14 +15,14 @@
%thead
%tr
%th
%th[sort_td_class_helper "name"]
%th[sort_td_class_helper("name")]
= sort_link_helper "Name", "name"
%th
%th[sort_td_class_helper "category"]
%th[sort_td_class_helper("category")]
= sort_link_helper "Kategorie", "category"
%th[sort_td_class_helper "unit"]
%th[sort_td_class_helper("unit")]
= sort_link_helper "Einheit", "unit"
%th[sort_td_class_helper "note"]
%th[sort_td_class_helper("note")]
= sort_link_helper "Notiz", "note"
%th{:style => "width: 4em;"} Gebgr.
%th{:style => "width: 5em;"} Preis

View file

@ -6,7 +6,7 @@
%table{:class => "ordered_articles", :style => "clear:both"}
%thead
%tr
%th[sort_td_class_helper "name"]{:colspan => "1"}
%th[sort_td_class_helper("name")]{:colspan => "1"}
= sort_link_helper "Artikel", "name", :action => "new", :remote => false
%th[sort_td_class_helper "order_number"]
= sort_link_helper "Nr.", "order_number", :action => "new", :remote => false

View file

@ -10,12 +10,12 @@
%table
%thead
%tr
<td #{sort_td_class_helper "date"}>
<td #{sort_td_class_helper("date")}>
\#{sort_link_helper "Datum", "date"}
%td Wer
<td #{sort_td_class_helper "note"}>
<td #{sort_td_class_helper("note")}>
\#{sort_link_helper "Notiz", "note"}
<td #{sort_td_class_helper "amount"}>
<td #{sort_td_class_helper("amount")}>
\#{sort_link_helper "Betrag", "amount"}
%tbody
- @financial_transactions.each do |t|

View file

@ -2,10 +2,10 @@
%table.list{:style => "width: 100%"}
%thead
%tr
%th[sort_td_class_helper "supplier"]
%th[sort_td_class_helper("supplier")]
= sort_link_helper "Lieferantin", "supplier"
%th Start
%th[sort_td_class_helper "ends"]
%th[sort_td_class_helper("ends")]
= sort_link_helper "Ende", "ends"
%th Status
%th{:colspan => "2"}