EmailShare

In this video we’ll install all of the components to run Ruby on Rails applications on our Macintosh computer.

Links

Commands

Install rbenv:

git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile

Then close and open your terminal.

Install Ruby

rbenv install 2.0.0-p353

Wait for that to finish, then type:

rbenv global 2.0.0-p353

Install Gems

gem install bundler
rbenv rehash
gem install sqlite3
gem install rails --version=4.0.2
rbenv rehash

Generate a Rails App

Create Test Rails Application

rails new testapp
cd testapp
bin/rails server

Application Address:

http://localhost:3000/

Click Here to Watch Video!

Leave a Reply