$rails -v Rails 3.2.13
sudo gem uninstall rails -v 3.2.13 ERROR: While executing gem ... (Gem::CommandLineError) Please specify at least one gem name (e.g. gem build GEMNAME)
$rails -v Rails 3.2.13
$gem uninstall railties ou have requested to uninstall the gem: railties-3.2.13
anjlab-bootstrap-rails-2.0.4.4 depends on railties (>= 3.0) bootstrap_helper-1.4.1 depends on railties (~> 3.0) coffee-rails-3.2.2 depends on railties (~> 3.2.0) devise-2.2.3 depends on railties (~> 3.1) jquery-fileupload-rails-0.4.1 depends on railties (>= 3.1) jquery-rails-2.2.1 depends on railties (< 5.0, >= 3.0) md_emoji-1.0.1 depends on railties (>= 3.1.0) sass-rails-3.2.6 depends on railties (~> 3.2.0) If you remove this gem, these dependencies will not be met. Continue with Uninstall? [yN]
$y
Remove executables: rails
in addition to the gem? [Yn] Y Removing rails Successfully uninstalled railties-3.2.13
运行 rails -v 还是显示 Rails 3.2.13
好,应该删除吧?
sudo gem install rails -v 4.0.0
Successfully installed rails-4.0.0 1 gem installed
$rails -v Rails 3.2.13
还是 3.2.13
进入到本地由 rails 4 创建的 APP 中运行 rails s sage: rails new APP_PATH [options] .... 相当于没创建 app project 一样
$rails list rails *** LOCAL GEMS ***
rails_autolink (1.1.0)
理论上这里应该显示 rails ( 不同版本 )
好像没安装 rails 啊?
which rails 显示 /usr/local/rvm/rubies/ruby-2.0.0-p247/bin/rails
这是怎么回事呢?重启安装也一样
基于 centos 6.0 for x64
谢谢!