rails command doesn't work on linux

I am on a Linux server with limited access. Even if ruby and gems
commands are working fine for me, rails command doesn't work. The
rails is already installed( rails packages are listed when I run gem
query --local)
Any ideas why rails command is not available?