You are a dog |
Or maybe you are a mosquito, you certainly can't be human. The highest pitched ultrasonic mosquito ringtone that I can hear is 21.1kHz |
| Find out which ringtones you can hear! |
啊?這是真的嗎?
是我家的喇叭太爛還是太好?
不過真的最後一個是聽不見了...
Jsonifier。原來的to_json其實是不太能用的,說起來就算是換上jsonifier,也還是得改encoder.rb,加上Time所使用的to_json才行。http://blog.codefront.net/2007/07/11/better-json-output-from-rails-with-the-jsonifier-plugin/
Rails的ActiveRecord大家已經很熟悉,可是實際上Rails Team他們卻慢慢地在提供新的功能讓大家感受不一樣的寫程式習慣。我相信有些功能是很實用,但是避免大家會依賴syntax suger,還是要稍微解釋一下裡面幹了些什麼,如此你可以自行判斷怎樣才不會做太多重複的事。
雖然這個函示庫是給Rails使用的,不過我會建議大家多利用在任何型態的專案裡,如此就很快地可以"write like a ruby programmer"。
更多的資料請參考 http://api.rubyonrails.org/