I am trying to run the Rails dev environment in my terminal (using command 'rails c'). I am receiving the error: 'Your Ruby version is 2.6.10, but your Gemfile specified 3.2.2'. I then ran 'which ruby' to make sure I am not on the Mac system Ruby and can confirm that I am not. This is the returned path '/usr/local/opt/ruby/bin/ruby'. As an additional check, I ran 'ruby -v' and terminal returns 'ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-darwin21]'. Why would there be this discrepancy? Is there another path I need to add to my .zshrc file? I've attached screen shots of my terminal and my .zshrc file. Any guidance is greatly appreciated! This is my .zshrc file
I recently reconfigured my .zshrc file so that all paths point to my homebrew installed ruby rather than the Mac system default ruby. My gem env info and all other terminal info return that I am on ruby 3.2.2. Ruby 3.2.2 is specified in my Gemfile, so I expect that I should be able to start my rails dev environment.