Skip to content

Instantly share code, notes, and snippets.

@rjmAmaro
Last active March 18, 2018 19:36
Show Gist options
  • Save rjmAmaro/dbf8fb250dfbd61ba73c45d018809c41 to your computer and use it in GitHub Desktop.
Save rjmAmaro/dbf8fb250dfbd61ba73c45d018809c41 to your computer and use it in GitHub Desktop.
Guide to create a new Ruby-on-Rails project

Ruby-on-Rails: Guide to create a new project

1. Set Ruby version and create Gemset

$ rvm --ruby-version --create use <ruby-version>@<gemset-name>

Creates the .ruby-version and the .ruby-gemset files.

2. Install Ruby-on-Rails

$ gem install rails

3. Create the project

$ rails new <project-name>

4. Move the dot files to the project folder

$ mv .ruby-gemset .ruby-version <project-folder>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment