rails and mean templates