pattern matched previous rails app