Move rails code in init-ruby into init-rails