2
votes

Case 1: When i open console direct in project directory (Using Linux Mint) I have created .ruby-version and .ruby-gemset in my rails project but it doesn't work. It do not set my ruby version and gemset automatically.

Case 2: It do works when i do..

$ cd . 
or
$ cd /path/to/project

why is this so?

my ~/.zshrc:

export PATH="/home/asad/.rvm/gems/ruby-2.0.0-p598/bin:/home/asad/.rvm/gems/ruby-2.0.0-p598@global/bin:/home/asad/.rvm/rubies/ruby-2.0.0-p598/bin:/home/asad/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:$PATH"
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
1
I have the same problem (I use bash & Konsole). If I 'cd' in a project folder everything works OK. But if I open the Konsole directly in that project's directory it doesn't work.imarg

1 Answers

1
votes

Do you have a .rvmrc file in your home or project directory? That would take priority over .ruby-version and .ruby-gemset, as shown in the rvm docs: https://rvm.io/workflow/projects