Move rails stuff from extras to rails plugin.