Whenever I setup new Linux for developing rails application. I feel bit tired of installing all necessary things for rails development.
For that I have written one shell script, that install most of the things requires for rails development. If you want this lazy thing. You can check here
And use it , fork the code and update if you feel some thing to be added.