No route matches [GET] "/"

Ich bin neu auf Schienen, so dass es klingt ziemlich naiv.Ich bin immer diese Fehlermeldung

No route matches [GET] "/"

Hier meine Routen.rb

MyApp::Application.routes.draw do
    match 'welcome/contact' => 'welcome#index'
end

Hier ist mein controller

class WelcomeController < ApplicationController
   def index
      redirect_to :action => :contact
   end
   def contact

   end
end

Und ich habe einen Kontakt.html-Code.erb in meiner app/view/willkommen/.Was mache ich falsch?

InformationsquelleAutor iJade | 2012-10-14

Schreibe einen Kommentar