Rails/Ruby upgrade

Close #1