Hallo Werner.

Werner Laude schrieb:
Kann mir mal jemand sagen wie ich Routen für statische Seiten hinbekomme?

Was hat das denn mit Restful routes zu tun? ;)

Was schreibe ich in die routes?

map.about_us ' ', :controller => 'about_us', :action => 'kontakt' ???

Du verwendest hier ganz normale "Named Routes". Schau daher mal unter diesem Stichwort hier nach:
http://api.rubyonrails.org/classes/ActionController/Routing.html

map.about_us bietet Dir die Möglichkeit, in den Views about_us_path() und about_us_url() zu verwenden, nicht about_us().

Viele Grüße,
Sebastian

_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug

Antwort per Email an