1.)一個不肯定性修改"WARN Could not determine content-length of response body": html
http://michael-roshen.iteye.com/blog/1612848 git
http://stackoverflow.com/questions/6731071/rails-and-html-encoding-error github
因而在environment.rb裏寫道: 數據庫
Depot::Application.config.session_store = :active_record_store 瀏覽器
把cookie_store改爲:active_record_store ruby
root@localhost :[depot_development]<11:13:38>alter table sessions modify data varchar(21582);
ERROR 1118 (42000): Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. You have to change some columns to TEXT or BLOBs cookie
原來utf8類型最大隻能到21581,超過一點點就報錯,可是超過不少的話就不會報錯而是自動轉爲mediumtext類型了。。 session
才發現保存到數據庫還有一個好處是,全部瀏覽器之間的狀態能夠共享,這個大部分是優勢,但有時候會是不順手的地方~ ide