We recommend Ruby 2.2 or newer for use with Rails. Rails requires Ruby 1.9.3 or newer.
Source: Compile it yourself
Windows installer: Ruby, popular extensions, editor
OS X 10.5+: Included with developer tools
gem update rails)
We recommend managing your Ruby installation through rbenv. It’s an easy way to run multiple versions for different applications and update when a new release is made.
With Ruby installed, you can install all of Rails and its dependencies through RubyGems on the command line:
- Discover how to install and configure Ruby on Rails 6 on a Windows or Mac computer. This practical course covers everything you need to know to get Ruby on Rails, MySQL, and all of the supporting software up and running.
- Ruby version 2.5.0 or higher, including all development headers (check your Ruby version using ruby -v) RubyGems (check your Gems version using gem -v) GCC and Make (check versions using gcc -v,g -v, and make -v) Guides. For detailed install instructions, follow the guide for your operating system. MacOS; Ubuntu; Other Linux; Windows.
New versions of Rails can be installed the same way.
This will take about 30 minutes. We will be setting up a Ruby on Rails development environment on macOS 10.14 Mojave. Older versions of OS X are mostly compatible so follow along as far as you can and then Google search for any problems you run into. See full list on ruby-lang.org.
Create your application skeleton and start the server:
You’re running Ruby on Rails! Follow the instructions on http://localhost:3000.
TextMate on OS X has long been the favored Rails editor, but the classic editors are still going strong. See VIM for Rails and Emacs for Rails. For a full-on IDE, check out JetBrains RubyMine.
<What is CocoaPods
CocoaPods manages library dependencies for your Xcode projects.
The dependencies for your projects are specified in a single text file called a Podfile. CocoaPods will resolve dependencies between libraries, fetch the resulting source code, then link it together in an Xcode workspace to build your project.
Ultimately the goal is to improve discoverability of, and engagement in, third party open-source libraries by creating a more centralised ecosystem.
Google have created a great overview for Route 85 video series going through this entire guide and more.
CocoaPods is built with Ruby and it will be installable with the default Rubyavailable on macOS. You can use a Ruby Version manager, however we recommend thatyou use the standard Ruby available on macOS unless you know what you're doing.
Ruby For Mac Os X
Install Ruby For Mac Emulator
Using the default Ruby install will require you to use
sudo when installinggems. (This is only an issue for the duration of the gem installation, though.)