That's assuming that MyApp is the name of your application, which I doubt. You should change it and use the actual name of your application. Even better, do
Rails.application.routes.append
controller :test do
get 'test/index' => :index
end
end