Creating a new project runs /usr/bin/rails, not /usr/local/bin/rails

This started yesterday, when I created a new project it ran /usr/bin/rails instead of the wrapper at /usr/local/bin/rails and since it's the wrapper that handles the version selection it made /usr/bin/rails error out with an invalid command ("_4.2.3_" instead of "new"). I'm not sure when it came in, I haven't created a new project in quite a while. The only oddity is that in the gem environment it shows the shell path having an extra "/usr/bin" at the start followed by what's in my real PATH variable. I've purged and reinstalled all the Ruby packages and made sure all the gems were present and in pristine condition, I cleared out the RubyMine configuration and deleted the package and reinstalled it from a fresh download. None of that helped. Does this ring a bell with anyone?

Environment: Debian 8.1, RubyMine 7.1.4, Ruby 2.1.5-p273, rails 4.1.8 and 4.2.3

1 comment
Comment actions Permalink

Hello,

sorry for the delay. That appears to be a known issue, please vote for it: 

https://youtrack.jetbrains.com/issue/RUBY-10434 

0

Please sign in to leave a comment.