diff --git a/lib/models.rb b/lib/models.rb index 1fd161d..a451fef 100644 --- a/lib/models.rb +++ b/lib/models.rb @@ -38,7 +38,7 @@ class Directorate has n, :services, :order => ['name'] has n, :suppliers, { :through => :services, :order => ['name'] } - has n, :payments, { :through => :services } +# has n, :payments, { :through => :services } before :save, :slugify diff --git a/views/payment.haml b/views/payment.haml index 6d358d3..7de5b56 100644 --- a/views/payment.haml +++ b/views/payment.haml @@ -5,11 +5,12 @@ %tr %td Date %td= @payment.d.strftime("%d %b %Y") - %tr - %td Directorate - %td - %a{ :href => "/directorates/#{@payment.directorate.slug}" } - = @payment.directorate.name + -# + %tr + %td Directorate + %td + %a{ :href => "/directorates/#{@payment.directorate.slug}" } + = @payment.directorate.name %tr %td Service %td