Skip to content

Instantly share code, notes, and snippets.

@Johnytran
Forked from jamesfwz/SETUP RAILS
Last active August 29, 2015 14:09
Show Gist options
  • Save Johnytran/c62e010caddb3773d7dc to your computer and use it in GitHub Desktop.
Save Johnytran/c62e010caddb3773d7dc to your computer and use it in GitHub Desktop.
# .ruby-gemset
projectname
# .ruby-version
ruby-2.1.2
# Gemfile
source 'https://rubygems.org'
cd ..
cd projectname
# Install bundler
gem install bundler
# Install Rails gem
gem install rails --version 4.1.4 --no-ri --no-rdoc
rails -v
rvm gemset list
gem update
# gem install rails
rails new .
#setup Github
git init
$ git add .
$ git commit -m 'initial commit'
git status
ssh -T -p 443 [email protected]
# You have to wait within 1 day to access to github
#bundle pg fail:
gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.3/bin/pg_config

Test from Jack, Test From Jack

Test from Jack

jack = Person.new jack.does_something('cool')

jack = new Person();
jack->doesSomething();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment