This is probably a really silly question bu tI can't seem to find
an answer since I'm apparently failing on keywords.
know how you can run commands from the commandline in linux if you put
a line on the top of your .rb file so you don't have to type
ruby myfile.rb all the time and can just do ./myfile.rb ?
Is it possible to have the same thing on a windows environment? I use
git bash as my shell most of the time and have a lot of cygwin
binaries installed. It's just that the general method is to put that
line on top and then chmod the file, which isn't really an option.
I can't seem to get my version of ruby when running "rails server"
to be the same as the one in terminal. If I run commands like
ruby -v I get 1.9.3 which is the version that I want to
use. But I get 1.8.7 when I use rails server. Any idea
how I get get my local server to leverage 1.9.3? I am using a Mac