在新的rails 4.0.0应用程序中,我运行rake db:sessions:create并得到以下错误:
rake db:sessions:create
rake aborted!
cannot load such file -- rails/generators/rails/session_migration/session_migration_generator
rake db:create工作正常。
Gemfile
gem 'activerecord-session_store', github: 'rails/activerecord-session_store'
的.config /初始化/ session_store.rb
::Application.config.session_store :active_record_store
答案 0 :(得分:3)
rails生成active_record:session_migration