To download Rails on Ubuntu, you need RubyGems. It is pre-configured when you install the Ruby programming language. After installing Ruby using Ubuntu’s APT manager, download the Rails framework via RubyGems using the gem install ruby command.