Nicht initialisierte Konstante problem für die Schienen Strecken

Hier ist meine route Konfiguration:

Karte.Ressourcen :Dienstleistungen |services| 
services.Ressourcen :Möglichkeiten |Fähigkeiten| 
Fähigkeiten.Ressourcen :http_headers 
Ende 
Ende

Hier ist meine "rake routes" ausgeben:

laran:Kofferraum laran$ rake routes 
(in " /Benutzer/laran/workspace/kibo/mega/server/trunk) 
KRIEGEN accounts /Konten(.:format) {:action=>"index", :controller=>"Konten"} 
POST /accounts(.:format) {:action=>"create", :controller=>"Konten"} 
new_account GET /Konten/new(.:format) {:action=>"neu", :controller=>"Konten"} 
edit_account GET /Konten/:id/edit(.:format) {:action=>"edit", :controller=>"Konten"} 
account BEKOMMEN /Konten/:id(.:format) {:action=>"show", :controller=>"Konten"} 
PUT /Konten/:id(.:format) {:action=>"update", :controller=>"Konten"} 
LÖSCHEN /Konten/:id(.:format) {:action=>"destroy", :controller=>"Konten"} 
Dienstleistungen /services(.:format) {:action=>"index", :controller=>"Dienstleistungen"} 
POST /services(.:format) {:action=>"create", :controller=>"Dienstleistungen"} 
new_service GET /services/new(.:format) {:action=>"neu", :controller=>"Dienstleistungen"} 
edit_service GET /Dienstleistungen/:id/edit(.:format) {:action=>"edit", :controller=>"Dienstleistungen"} 
service /Dienstleistungen/:id(.:format) {:action=>"show", :controller=>"Dienstleistungen"} 
PUT /Dienstleistungen/:id(.:format) {:action=>"update", :controller=>"Dienstleistungen"} 
LÖSCHEN /Dienstleistungen/:id(.:format) {:action=>"destroy", :controller=>"Dienstleistungen"} 
service_capabilities GET /Dienstleistungen/:service_id/Fähigkeiten(.:format) {:action=>"index", :controller=>"Funktionen"} 
POST /services/:service_id/Fähigkeiten(.:format) {:action=>"create", :controller=>"Funktionen"} 
new_service_capability GET /Dienstleistungen/:service_id/Fähigkeiten/new(.:format) {:action=>"neu", :controller=>"Funktionen"} 
edit_service_capability GET /Dienstleistungen/:service_id/Fähigkeiten/:id/edit(.:format) {:action=>"edit", :controller=>"Funktionen"} 
service_capability GET /Dienstleistungen/:service_id/Fähigkeiten/:id(.:format) {:action=>"show", :controller=>"Funktionen"} 
PUT /Dienstleistungen/:service_id/Fähigkeiten/:id(.:format) {:action=>"update", :controller=>"Funktionen"} 
LÖSCHEN /Dienstleistungen/:service_id/Fähigkeiten/:id(.:format) {:action=>"destroy", :controller=>"Funktionen"} 
service_capability_http_headers GET /Dienstleistungen/:service_id/Fähigkeiten/:capability_id/http_headers(.:format) {:action=>"index", :controller=>"http_headers"} 
POST /services/:service_id/Fähigkeiten/:capability_id/http_headers(.:format) {:action=>"create", :controller=>"http_headers"} 
new_service_capability_http_header GET /Dienstleistungen/:service_id/Fähigkeiten/:capability_id/http_headers/new(.:format) {:action=>"neu", :controller=>"http_headers"} 
edit_service_capability_http_header GET /Dienstleistungen/:service_id/Fähigkeiten/:capability_id/http_headers/:id/edit(.:format) {:action=>"edit", :controller=>"http_headers"} 
service_capability_http_header GET /Dienstleistungen/:service_id/Fähigkeiten/:capability_id/http_headers/:id(.:format) {:action=>"show", :controller=>"http_headers"} 
PUT /Dienstleistungen/:service_id/Fähigkeiten/:capability_id/http_headers/:id(.:format) {:action=>"update", :controller=>"http_headers"} 
LÖSCHEN /Dienstleistungen/:service_id/Fähigkeiten/:capability_id/http_headers/:id(.:format) {:action=>"destroy", :controller=>"http_headers"} 
/login {:action=>"login", :controller=>"Konten"} 
/logout {:action=>"logout", :controller=>"Konten"} 
root /{:action=>"index", :controller=>"default"} 
laran:Kofferraum laran$

Wenn ich unter /services/neues obwohl, ich bekomme diese Fehlermeldung:

NameError in ServicesController#new 

nicht initialisierte Konstante ServicesController::Dienstleistungen

Was gibt? Wie kann ich Dinge, die arbeiten und richtig weitergeleitet? Danke.

Ich fand es heraus. So ein dum-dum. Ich habe die controller als ServicesController, so dass alle Referenzen zu den Services-Modell anstelle der Service-Modell. Dumme Fehler.

InformationsquelleAutor Laran Evans | 2009-07-14

Schreibe einen Kommentar