首页新闻找找看学习计划

rails开启session

0
悬赏园豆:10 [待解决问题]
Ruby version 1.8.7 (i386-mingw32)
RubyGems version 1.8.16
Rack version 1.1.6
Rails version 2.3.14
Active Record version 2.3.14
Active Resource version 2.3.14
Action Mailer version 2.3.14
Active Support version 2.3.14
Application root C:/sns
Environment development
Database adapter mysql
Database schema version 20130210081226                                                                                    

 rake db:sessions:create

C:\sns\config\initializers\session_store.rb

ActionController::Base.session_store = :active_record_store

去除前面#号键

重启ruby script/server,

报错 Mysql::Error: Data too long for column 'session_id' at row 1:

 

修改字段长度后,即可。

这是rails开发的bug吗?

Jake019的主页 Jake019 | 初学一级 | 园豆:148
提问于:2013-02-10 16:38
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册