Running `rails` on Ubuntu executes Rails 2 even after installing Rails 3

view story

http://askubuntu.com – Previously, I ran apt-get install rails, but that only installed rails 2, so I subsequently ran gem install rails. The output of that command clearly references rails 3, not 2: Fetching: railties-3.2.9.gem (100%) Fetching: bundler-1.2.3.gem (100%) Fetching: rails-3.2.9.gem (100%) # ... ...but rails -v outputs Rails 2.3.14. Gah! I can't run my rails local server! Yet when I run gem list rails, the output is: *** LOCAL GEMS *** rails (3.2.9) What am I to do to get the rails 3 rails command to work on the command line? (HowTos)