Skip to content

Ruby on Rails on Windows 8

Derkje-J edited this page Feb 22, 2013 · 1 revision

This guide will allow you to use Rails on Windows 8

Rails Installer

Download the Rails Installer You will get Git and Devkit if not installed.

Update Gems

gem update --system
gem install bundler
gem install rails

Enable CoffeeScript

Install node.js if Coffeescript ought to be used

Enable MySQL

Install MySQL if ought to be used. SQLLite is already installed.

gem install mysql2

will install the connector.

Download the connector-c, relevant to the gem version. Copy the libmysql.dll dll from the zip file to <<RailsInstallerPath>>\Ruby1.9.3\bin

To create an app

Go to the app location root folder

rails new APPNAME -d mysql

you can substitute the argument after -d for other databases

Start the server

Go to the app location

rails s

To fix the annoying content length messages

Go to <<RailsInstallerPath>>\Ruby1.9.3\lib\ruby\1.9.1\webrick\httpresponse.rb

And apply this path