Kevin Hallett

moon indicating dark mode
sun indicating light mode

Rails on Windows

August 30, 2020

Installation

I used scoop to install ruby.

scoop install ruby

Then I installed msys2 as recommended in the output from the above command.

scoop install msys2

Then I used

ridk install

then

ridk enable

then I installed rails.

gem install rails

🎉 at this point you should have ruby

ruby --version
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x64-mingw32]

and rails

rails --version
Rails 6.0.3.2

Hello Rails

Time to build your first rails application, let’s scaffold our new app with

rails new hello-rails

rails will generate your project files and install your dependencies. Then cd into the new directory

cd hello-rails

and run your first rails app

rails s

this should start your rails app at http://localhost:3000/.

Further Reading

https://guides.rubyonrails.org/getting_started.html


Personal blog by Kevin Hallett.