摘要:def redirect_to_index(msg = nil) flash[:notice] = msg if msg redirect_to :action => :index end
阅读全文
04 2009 档案
摘要:start_form_tag 和end_form_tag方法已经被废弃了,现在是 参看例子:(《Agile Web Development with Rails》中p105 checkout.rhtml ) "save_order") do %> Name : 40) %> Email: 40) %> ...
阅读全文
摘要:Rails For Designers Web 設計人員如何看 Rails? 了解一下 Model, View 及 Controller Model : 資料及處理資料時商業邏輯, 通常會將資料儲存於資料庫 Controller : 主要的應用程式邏輯, 通常程式會利用一些變數傳遞給 view 使用 e...
阅读全文