Ruby 1.9, it actually offers to give me in that format, or I can scroll on down past Windows and Linux, until I get to Ruby On OS X and it basically tells you the same information that I just told. A computer with the ability to install Ruby on Rails and Neo4j (any computer Windows/Mac/Linux will work) Course Duration: 0.5 Hours Course Instructor: Brian Underwood.
(Related article: ) Step 1. Upgrade Your System to OS X Mavericks Installing Ruby on Rails is simple, but unless you have an old Mac machine (a pre ‘08 model), you should seriously consider upgrading your system to OS X Mavericks (10.9). It comes with the latest improvements from Apple, and it’s completely free! You can for this upgrade.
Install XCode Command Line Developer Tools We need to first install Apple’s XCode Command Line Developer Tools, so that we can use the build tools and utilities that come with it to build Ruby gem native extensions and install other system packages. This used to be a lengthy process, but if you are on Mavericks, all you have to do is to run this command in your terminal. 1 which brew you should see the response as /usr/local/bin/brew Step 4. Install Ruby with RBENV Your Mac already ships with Ruby (we used it to install homebrew in the last step).
However, it’s still a good idea to use a Ruby version manager because:. the system Ruby is likely outdated and you may want to use the latest Ruby version to leverage the new features. you may need to work on multiple projects on different Ruby Versions RVM and RBENV are the two leading Ruby version managers.
I prefer RBENV because it’s a simpler and lighter weight solution, and together with bundler, it solves the project gemset problem in a more elegant way. We can just use homebrew to install rbenv. 1 2 git config -global user.name 'Your Name Here' git config -global user.email '[email protected]' Github is the leading platform for source code hosting and collaboration.
If you don’t have an account yet, go ahead and sign up for one at Make sure you sign up with the same email address from the step above. For easier authentication with Github when you push or pull code, follow to set up ssh keys for your Mac. Create a New Rails Application If you don’t have a directory to hold all your development projects yet, you can create that directory like below. 1 plugins =(git brew osx vagrant wd gem ) If you do not like the default theme, you can pick from one of the many themes that come with oh-my-zsh.
You can see the list of themes. If you feel really adventurous, you can even build your own theme!
Take a look at, and copy/tweak/build one exactly to your taste! Optional step 2. Install Postgresql as a production quality database By default, Rails uses sqlite3 as the default development database. It’s a nice database but probably not one that you want to use in production. Postgresql is a solid, production quality relational database and works well with Rails. It’s generally a good idea to set up your local database to match the database on the production environment. The easiest way to use Postgresql on Mac is to download and install the With Postgresql running, add gem 'pg' to the Gemfile in your rails project and run bundle install to install the Postgresql Ruby driver.
Talks about how to set up with Postgres in detail. You can skip the “taps” part if you don’t already have data that needs to be migrated. You just made it to the end of our first rails tutorial, and have now set up your local Ruby on Rails development environment like a pro, now it’s time to start coding.:) Feb 7 th, 2014.
by Kevin Wang Get Our Newsletter Beginner focused news, tutorials and coding tips. We won't spam or waste your time.
You have subscribed successfully Please enter a valid email address There was a problem, please try again See What Our Community is Talking About From soft topics to in-depth tutorials, members of the Launch School community have all sorts of useful information to share. Share on. Popular Posts.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |