Can I install Ruby and Ruby on Rails on an Android?
this can be done


Compile Ruby and Nodejs for android 
Install on device and configure with c/c++ ide (You can use C4droid,CCTools,Terminal IDE.... for installing the expansion modules on с/с++)  
Install rails ($gem install rails)


example:
  
(Click image to enlarge)