Script to run rails command on windows

I got tired of running ruby ./bin/rails generate .... command on Windows.


With this script you can just run ./rails.bat generate ...:

  1. Create file rails.bat
  2. Paste this code
@echo off
ruby ./bin/rails %*