Error when installing rails on new linode instance

Hello All,
I have just created a new install of Ubuntu 8.10, and have proceeded
to
install all of the necessary packages for Ruby on Rails. I installed
ruby,
gems, and rails, but when i run rails -v, i get the following error:

root@li41-22:~# rails -v
-bash: rails: command not found

any guidance would be greatly appreciated

Jason

which rails
find / -name rails

Is it installed in /usr/local/ ?

do you have /usr/local/bin/ in your path?

echo $PATH

Is rails installed?

gem list

Did you install the gems under a user ? maybe you should have done

sudo gem install rails

Just like on a mac if you use gem install on a none privileged user it
will install the gems in .gem in the users home directory… And most
likely you do not have that directory in your path…