Installing a Ruby on Rails development environment on Windows
I'm going to keep it brief as there are some good guides out there that can fill you in with the details. I had a ruby on rails app up and running within 15 minutes (and spent a bit of time noting things down and writing this blog post).
- Download and install the RubyInstaller for Windows
- Install the DevKit using these instructions and this download
- Once Ruby is installed you can install RubyGems including rails using "gem install rails" from the command line
- Download sqlitedll and put it in the bin directory of your ruby install. For me this was C:\Ruby192\bin
- Install sqlite3 using "gem install sqlite3-ruby"
- Create your first Ruby on Rails app by running "rails new path/to/your/new/app" from the command line
- Navigate to the new rails app using "cd path/to/your/new/app" and start your rails server using the "rails server" command (you may get prompted about firewall settings)
- Navigate to http://localhost:3000
And you are done!
Useful Resources:
- Ruby Development on Windows Guide
- RubyInstaller for Windows download page
- Ruby DevKit including installation guide
- "ruby.exe the program can't start because sqlite3.dll is missing" note: it's "gem install sqlite3-ruby"
- "the program cant start because sqlite3.dll is missing from your computer" - Installing And Using SQLite With Ruby On Windows
- SQLite download page
