1.)一个不确定性修改"WARN Could not determine content-length of response body":
http://michael-roshen.iteye.com/blog/1612848
http://stackoverflow.com/questions/6731071/rails-and-html-encoding-error
于是在environment.rb里写道:
Depot::Application.config.session_store = :active_record_store
把cookie_store改成:active_record_store
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
原来utf8类型最大只能到21581,超过一点点就报错,但是超过很多的话就不会报错而是自动转为mediumtext类型了。。
才发现保存到数据库还有一个好处是,所有浏览器之间的状态可以共享,这个大部分是优点,但有时候会是不顺手的地方~