[英]ActiveRecord::Base#assign_attributes monkey patch doesn't work after Rails 4 upgrade
[英]Rails upgrade doesn't work
我正在使用Ubuntu 10.10。 當我運行rails -v時,我得到2.3.5。 我想升級到3.0.5,所以我運行sudo gem install rails。 我懂了
Successfully installed rails-3.0.5
1 gem installed
Installing ri documentation for rails-3.0.5...
Installing RDoc documentation for rails-3.0.5...
我再次運行rails -v。 它仍然返回2.3.5。 我運行sudo apt-get install rails,我得到
Reading state information... Done
rails is already the newest version.
有人知道我在做什么錯嗎?
查看您當前的gemfile,可能它只記錄了rails 2.3.5,如果確實記錄,則更改為3.0.5。 之后,只需運行bundle install
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.