404 error while testing the console

Hi,

I’m just practising ROR creating short applications.I tried to test the
console for my sample application and get a different return code from
the code its mentioned in the textbook…

here is the code

$script console
Loading dev…

app.get “/slides”
=> 200

app.request.path_parameters
=>{action"=>"index, “controller”=>“slides”}

app.get “/slides/1”
404

where I’m supposed to get 200 in the last line of above code.

Any help would be appreciated…

Raghu

where I’m supposed to get 200 in the last line of above code.

It would be more normal that the second url would be “/slide/1”. If
that
doesn’t fix it post your routes.rb file.

RESTful routes are /slides (as you want a list of all the SLIDES
available)
and /slide/:id if you want a SLIDE in particular.

Cheers,

Andy