Rails is using a different version from the selected ruby

Issue #114 new
Former user created an issue

Hello

I am using uru on windows 10 CMD.

I have 2 versions of ruby installed (2.7.2 and 3.0.0) and I have executed the following commands on cmd

D:\@UoA\sales_rep\stock_filter>uru ls
 => 272p137     : ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x64-mingw32]
    300p0       : ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x64-mingw32]

D:\@UoA\sales_rep\stock_filter>uru 272
---> now using ruby 2.7.2-p137 tagged as `272p137`

D:\@UoA\sales_rep\stock_filter>rails db:system:change --to=sqlserver
Your Ruby version is 3.0.0, but your Gemfile specified 2.7.2

D:\@UoA\sales_rep\stock_filter>ruby -v
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x64-mingw32]

D:\@UoA\sales_rep\stock_filter>which ruby
/d/Applications/ProgramFiles64/Ruby27-x64/bin/ruby

D:\@UoA\sales_rep\stock_filter>which rails
/d/Applications/ProgramFiles64/Ruby30-x64/bin/rails

D:\@UoA\sales_rep\stock_filter>uru admin refresh
---> refreshing ruby tagged as `300p0`
---> refreshing ruby tagged as `272p137`

D:\@UoA\sales_rep\stock_filter>which rails
/d/Applications/ProgramFiles64/Ruby30-x64/bin/rails

I don't understand why rails is using a different version than ruby. Any Idea on how to fix this?

Thanks

Comments (0)

  1. Log in to comment