One of the questions raised during the last Rails training course I held was “Can Ruby on Rails work with XAMPP?”
With this new version of Rails FTW, the answer to that question is YES.

Download Rails For (the) Windows v0.1
latest version is v0.4. grab it here
OK, so this version doesn’t install mod_rails on XAMPP, but it does allow you to get around the headaches involved in making Rails 3 work with MySQL on Windows.
Here’s a basic rundown of the changes from the last installer:
- The mysql2 gem still doesn’t work for Windows so I included the old mysql gem instead.
- Like what I did with SQLite in the previous installer, I’ve included the DLL for MySQL (libmysql.dll) in the bin folder. MySQL 5.1 doesn’t work with the mysql gem so I used the DLL file from the latest “no install” package for MySQL 5.0 (mysql-noinstall-5.0.91-win32.zip).
I know, Oracle will probably sic their lawyers against us if they catch wind of this project. Hopefully the MariaDB or SkySQL guys would give us an open replacement DLL file in the future. - I’ve modified the Railties gem to replace instances of mysql2 to mysql (e.g. database.yml, Gemfile).
- Minor change: add a line to config to remove log coloring (useless in Windows)
- Minor change: in the installer, the Add to PATH option is checked by default
- Minor change: remove gems from gem cache to reduce installer size (a facepalm moment -_-)
Rundown of the quick blog app demo using this installer below the cut.
Continue reading “Rails FTW, now with MySQL support!”