I\'m getting this error when I try to run any brew command.
Holger-Sindbaeks-MacBook-Air:~ holgersindbaek$ brew help -bash: /usr/local/bin/brew: /usr/bin/rub
This happened because I needed to update brew - in the updated version it already uses Current ruby
cd /usr/local git pull -q origin refs/heads/master:refs/remotes/origin/master
This solved the problem