OS X 10.6 by default installed Rails 2.2.2. How to upgrade to Rails 2.3.8?
Since Rails 3 is missing, is it possible to install multiple versions of Rails (e.g. 2.3.8 and 3) on OS X?(For example, I could work on two Rails projects, one of them is Rails 2.x and the other is Rails 3.x).
Use rvm
RVM is a command line tool that allows us to easily install, manage and work with several ruby environments from interpreters to gem sets ...RVM - . , , . RVM GEMS, , . , gem. RVM , , . , - ...
RVM is a command line tool that allows us to easily install, manage and work with several ruby environments from interpreters to gem sets ...
RVM - . , , . RVM GEMS, , . , gem. RVM , , . , - ...
, , :
gem install -v=2.3.8 rails
:
rails _2.3.8_ new rails app
, _versionnumber_ rubygems.
-v = [ , ]
list gem rails
config/environment.rb Rails, .
gem:
sudo gem install rails --version 2.3.8
, rubygems , , OS X. , , .
sudo gem install rubygems-update sudo update_rubygems
, :
rvm . , , , - Bundler. Bundler Software Update rails. , Rails 3 Bundler, , Gemfile, . , .
( , gem, )
http://rubygems.org/
, =)
Source: https://habr.com/ru/post/1780270/More articles:Change network settings in C - cJQuery autocomplete autocomplete - javascriptHow to change cursor appearance in EditText? - androidCenter vertical text image in EditText - androidIs there a driver for SQLite in Java? - javaORA-01843 "Invalid month" and ORA-01861 "Literal does not match format string" - sqlHow to stop VS2008 from unnecessarily modifying my CSPROJ files? - version-controlJQGrid, Telerik, DataTables и т.д. Какой из них хорош? - jquery-datatablesSetting the maximum size for vertical windows in vim - vimhelp with inport csv file in my c # program - c #All Articles