推 janyfor:model中 不是可以自己寫簡單的錯誤訊息? 08/23 16:08
推 shelary:model??? 怎麼寫? 這應該跟model沒關係吧 08/23 16:25
→ godfat:如果我沒記錯的話,不應該是這樣的,看一下你的 log 08/23 17:07
推 janyfor:validates_length_of :password, :minimum => 4 08/23 17:11
→ janyfor:validates_uniqueness_of :account, :message => "重複" 08/23 17:15
→ janyfor:也可以在 controller 中 檢查送進去的參數 08/23 17:17
→ janyfor:在用 flash[:notice] 秀出訊息 08/23 17:19
→ shelary:呃..我問的是 Active Scaffold 這個 plugin 耶 @@" 08/23 18:35
→ shelary:log 就是寫 acount 重覆..mysql 發生錯誤 08/23 18:35
→ shelary:我去看了 Active Scaffold 的 js 檔... 08/23 18:36
→ shelary:他那個 500 error 訊息是寫死的...所以無解... 08/23 18:36
→ shelary:Active Scaffold 不管任何錯誤..都一律顯示 500 error 08/23 18:37
→ shelary:你們自己簡單實驗一下就知道了.. @_@ 08/23 18:39
→ shelary:甚至去官方網頁看FAQ..居然也是叫我們自己去看log檔 @@ 08/23 18:45
→ shelary:如果不能防呆...那真的不知道能應用在那裡了 08/23 18:46