I just burned out because I used find_index in an array in my dev block (OSX with Ruby 1.8.7), and the deployment machine ran Ruby 1.8.6. (What is the difference between find_index and index ? The latter works on 1.8.7 and 1.8.6)
So, I thought: what is the best way to get Rails to run a specific version of Ruby?
Since this is probably relevant (install a few rubys!), I need to know this for OSX, but it would be useful to know for Linux, Windows, and Commodore 64 too.
Later: Of course, I now work in a virtual device, but I would like to be able to control my versions of Ruby, if possible on my computer.
Note. . I don't care that Rails is working with the wrong version of Ruby. I'm more interested in starting the manual version of RIGHT. Sorry for the confusion.
ruby ruby-on-rails macos
Dan rosenstark
source share