Skip to content

Instantly share code, notes, and snippets.

@denzildoyle
Last active August 29, 2015 13:56
Show Gist options
  • Save denzildoyle/9029332 to your computer and use it in GitHub Desktop.
Save denzildoyle/9029332 to your computer and use it in GitHub Desktop.
A step by step guide to setting up rails on windows

Download Ruby (Ruby 1.9.3-p484) from # http://rubyinstaller.org/downloads/

Install

  • Add Ruby executables to your PATH
  • Associate .rb and .rbw files with this Ruby installation
  • (Remember file path you install ruby in)

Download devkit (DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe) from same link

Install to same file path as previous ruby install

Commands

  • run ruby dk.rb init
  • ruby dk.rb install
  • gem install rails

Create a new rails application

  • rails new [application name]
  • cd [application name]

Start server make sure rails is installed currectly

  • rails server

Go to

Stop server

  • ctr + c

Create welcome controller

  • rails generate controller welcome index

open

  • app/views/welcome/index.html.erb

Change file content to

  • Hello, Rails!

Update application routes line: 7

  • config/routes.rb

uncomment

  • root "welcome#index"

start server again

  • rails server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment