I am trying to install Rails on Ubuntu, but it is showing the following error:
ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions into the /var/lib/gems/1.9.1 directory.
Please help me to install the Rails gem.