That is many commands, but it's only one line.
And there's something in the inner-sysadmin in me that sees "curl http://example.com/foo.sh && ./foo.sh" and shudders. That sounds like a receipe for disaster.
And there's something in the inner-sysadmin in me that sees "curl http://example.com/foo.sh && ./foo.sh" and shudders. That sounds like a receipe for disaster.
Otherwise that line would be:
sudo aptitude install ruby1.9.2-full && sudo gem install railsIf wanting an easier way to install Rails for beginners makes me an idiot, then I'm proud of it ;)
Note that this solution also compiles stuff on your machine, and in this case it uses system-wide installation locations. One advantage of rvm is that everything is done as a regular user and sandboxed in $HOME/.rvm. Easy to find and remove, if anything goes wrong or you change your mind later.
(Edited because I misread the command line.)