本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
adrianshort
/
armchairauditor
镜像来自
https://github.com/adrianshort/armchairauditor.git
關注
1
收藏
0
複製
0
程式碼
問題
0
版本發佈
0
Wiki
活動
瀏覽代碼
Restored directorate/payments association
pull/3/head
Adrian Short
14 年之前
父節點
9217da659b
當前提交
0041f8ab72
共有
2 個檔案被更改
,包括
6 行新增
和
6 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
lib/models.rb
+5
-6
views/payment.haml
+ 1
- 0
lib/models.rb
查看文件
@@ -38,6 +38,7 @@ class Directorate
has n, :services, :order => ['name']
has n, :suppliers, { :through => :services, :order => ['name'] }
has n, :payments, { :through => :services }
before :save, :slugify
+ 5
- 6
views/payment.haml
查看文件
@@ -5,12 +5,11 @@
%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
Write
Preview
Loading…
取消
儲存