Can someone tell me why
salvator:edu uko$ ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]
and
salvator:edu uko$ rails s
=> Booting WEBrick
=> Rails 3.1.1 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2011-11-20 15:26:30] INFO WEBrick 1.3.1
[2011-11-20 15:26:30] INFO ruby 1.8.7 (2010-01-10) [universal-darwin11.0]
[2011-11-20 15:26:30] INFO WEBrick::HTTPServer#start: pid=562 port=3000
ruby versions are different? Can I specify ruby on server start?
UPDATE:
bundle exec rails s works well but what is the correct way to setup ruby/rails and all the stuff, so rails s will work alone as well?
I think you need run
rbenv rehashif you are using rbenv.