这一定是一个简单的问题,但我浏览这个论坛找不到答案。
当我检查 rails 版本时,它显示版本 3.2.8
user@domain.com [~/rails_apps]# rails -v
Rails 3.2.8
user@domain.com [~/rails_apps]#
但是当我启动服务器时,它运行版本 2.3.11
user@domain.com [~/rails_apps/myapp]# script/server -p12011
=> Booting Mongrel
=> Rails 2.3.11 application starting on http://0.0.0.0:12011
/home3/user/rails_apps/myapp/config/environment.rb:45: warning: already initialized constant RAILS_ENV
NOTE: SourceIndex.new(hash) is deprecated; From /usr/lib64/ruby/gems/1.8/gems/rails-2.3.11/lib/rails/vendor_gem_source_index.rb:100:in `new'.
=> Call with -d to detach
=> Ctrl-C to shutdown server
我究竟做错了什么?