No route found to match "/controller" with {:method=>:get}

Hi,
I’m trying to get into Ruby using Ralf Wirdemann’s and Thomas B.'s
book “Rapid Web development mit Ruby on Rails”.
Setting up Ruby etc. works fine but when calling
http://localhost:300/controller I’m constantly getting

Routing error
no route found to match “/controller” with {:method=>:get}

Database was set up,
rake migrate
did work although I got the following warning:
The rake task migrate has been deprecated, please use the replacement
version db:migrate

Any idea what I’m doing wrong?

Thanks a lot for help,
Ralf

Hi,
in the URL try to replace the word ‘controller’ with the name of your
controller…

-Alex

Ralf Barth schrieb:

Hi,
I’m trying to get into Ruby using Ralf Wirdemann’s and Thomas B.'s
book “Rapid Web development mit Ruby on Rails”.
Setting up Ruby etc. works fine but when calling
http://localhost:300/controller I’m constantly getting

Hallo Ralf.

  1. denke du meinst http://localhost:3000/controller (3tausend)
  2. lösche die index.html im Ordner public
  3. editiere und auskommentiere eine der ersten Zeilen in der
    config/routes.rb
    map.connect ‘’, :controller =>‘controllername’, :action =>‘actionname’
    (die ersten beiden Hochkommas stehenlassen)

Gruß
Werner

Werner L.
Lindenburger Allee 22 | 50931 Köln

0221.8805 635


http://www.webagentur-laude.de

Hi Ralf,

Am 29.10.2007 um 10:31 schrieb Ralf Barth:

Database was set up,
rake migrate
did work although I got the following warning:
The rake task migrate has been deprecated, please use the replacement
version db:migrate

Davon wirst du unterwegs öfter mal was lesen. Google hilft im
allgemeinen und im speziellen hilft

Im Falle von rake empfehl ich dir auch mal ein rake --tasks
damit du siehst was du damit denn überhaupt machen kannst.

ciao, tom


Thomas R. “TomK32” Koll <> http://tomk32.de <> http://ananasblau.de
just a geek trying to change the world