Update rails.markdown

some refactoring
thanks Andy
Merge branch 'patch-1' of https://github.com/pxlpnk/UvA_Ruby
add good formatting