看板 Ruby 關於我們 聯絡資訊
一般 to_label 都是在 model 裡面去指定, 我想請問可否在 controller 去控制 model 的 to_label, 主要是要在不同的 controller,產生同一 model 的不同欄位。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.224.238.101
godfat:好像不太合理...這樣應該自己寫顯示方法吧 09/11 23:57