Hallo, danke soweit...
> 
> ruf doch einmal rake routes auf der kommandozeile auf und schau dir an, 
> welche routes rails dort generiert. ich vermute mal, dass du mit einem 
> localhost:3000/buecherliste anstatt mit localhost:3000/books weiterkommst...

Books::Application.routes.draw do
resources :books, :as => 'buchliste'

buchliste_index GET    /books(.:format)          {:action=>"index", 
:controller=>"books"}
buchliste_index POST   /books(.:format)          {:action=>"create", 
:controller=>"books"}
new_buchliste GET    /books/new(.:format)      {:action=>"new", 
:controller=>"books"}
edit_buchliste GET    /books/:id/edit(.:format) {:action=>"edit", 
:controller=>"books"}
buchliste GET    /books/:id(.:format)      {:action=>"show", 
:controller=>"books"}
buchliste PUT    /books/:id(.:format)      {:action=>"update", 
:controller=>"books"}
buchliste DELETE /books/:id(.:format)      {:action=>"destroy", 
:controller=>"books"}

Tipp von Torsten..

scope(:path_names => { :new => "neu", :edit => "bearbeiten" }) do  resources 
:books, :path => "buchlisten" end 
bzw 
scope do  resources :books, :path => "buchlisten" end

books GET    /buchlisten(.:format)                {:action=>"index", 
:controller=>"books"}
books POST   /buchlisten(.:format)                {:action=>"create", 
:controller=>"books"}
 new_book GET    /buchlisten/neu(.:format)            {:action=>"new", 
:controller=>"books"}
edit_book GET    /buchlisten/:id/bearbeiten(.:format) {:action=>"edit", 
:controller=>"books"}
book GET    /buchlisten/:id(.:format)            {:action=>"show", 
:controller=>"books"}
book PUT    /buchlisten/:id(.:format)            {:action=>"update", 
:controller=>"books"}
 book DELETE /buchlisten/:id(.:format)            {:action=>"destroy", 
:controller=>"books"}

das klappt.. 

Danke für den Tipp - ich hatte mir das komplett ausgedruckt, aber wohl 
übersehen..


Gruß

Werner Laude
http://www.webagentur-laude.de





_______________________________________________
rubyonrails-ug mailing list
rubyonrails-ug@headflash.com
http://mailman.headflash.com/listinfo/rubyonrails-ug

Antwort per Email an