1 user.save 数据能保存进数据库(attr_accessible不能用), 在 Gemfile 中添加 gem "protected attributes"
2 rails console出现错误:Bundler is using a binstub that was created for a different gem.
This is deprecated, in future versions you may need to `bundle binstub rails` to work around a system/bundle conflict.并且一直启动不了,则
bundle config --delete bin # Turn off Bundler's stub generator rake rails:update:bin # Use the new Rails 4 executables git add bin # Add bin/ to source control
解决问题