I don\'t know what I did. I think I updated my Ruby on Rails. After updating it, I always get error when running $rails server.
output is
ruby-1.9.
I think somehow your rails server is keep running after you close it. You can try as
ps aux | grep ruby
see pid and then kill that pid
kill -9
Now you can restart your server using
rails s
Note: From next time onwards try using Ctrl D for terminating rails server. That might help