![]() RubyMine is fantastic if you're familiar with IntelliJ or P圜harm.Textmate is lightweight, capable of handling ruby, rails, javascript, HTML, erb, jade, and pretty much anything else you throw at it.RBENV_VERSION=2.x.x rbenv exec gem install rails -version 5.2.3 -no-document It's the most reliable way to install the precise version of Rails you want. This command looks slightly different from what you'll often see in books or Stackoverflow. If you're not sure which version of Rails to pick, try looking at Heroku's package or OpenShift's cartridge. Install Rails and skip the documentation to speed up the installation. Remember that every time you install something, you need to rehash it. gem update -systemīundler is a package manager added to Rails 3 to keep things organized. If you're on Mac OS X, you need to update gem. Switch your computer to start using Ruby 2.x.x rbenv global 2.x.x rbenv install 2.x.xĮvery time you install something, you need to rehash rbenv rehash One trick is to look at what version Heroku supports and copy them. source ~/.bash_profileĭouble-check that rbenv is installed and working as expected. ![]() echo 'eval "$(rbenv init -)"' > ~/.bash_profile Open up Terminal and paste this line of code. rbenv install -list-all | grep 3Ĭonfigure your environmental variables to always use rbenv upon load. View all available versions of Ruby and filter them by a specific version. Install a stable version of Ruby that rbenv supports. Install Homebrew Step 1 - Install rbenv to manage Ruby Homebrew is a package manager for stuff other than Ruby or Rails. ![]() If you'd rather use rvm instead, here is my tutorial on how to do it. If you'd like to research the two package managers further, check out the appendix below. ![]() I prefer the simplicity ad straightforwardness of rbenv, so this article will focus on the basics of installing Ruby and Rails. When managing multiple versions of Ruby on Mac, you have two options, rvm and rbenv. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |