2010年4月20日 星期二

[Ptt][心得] Restful下遇到params[:id]含有.的解法

在restful的前提下, 遇到class的to_param是字串, 而剛好某筆
紀錄的to_param欄位含有.

一般情形下會發生錯誤, 因為restful會把.後的東西當成format
這時的解法, 變成要在routes.rb中的xxx.resources加上參數

ex:

paramter change permanently, header status

2010年4月16日 星期五

Practical Rails Social Networking Site memo (2)

2010年4月15日 星期四

Practical Rails Social Networking Site memo

2010年4月6日 星期二

check timezone valid