[Rails] How to debug "no route to..."

I’m new to Ruby/Rails and doing pretty well and liking it a lot.
However, deep into one of the tutorials, I was feeling so confident that
I went several pages (read: hours) without double-checking that my
changes were still working. When I finally got to the part where I
thought “ok, I better check on this and see how it’s looking”, I got

Routing Error:
no route found to match “myapp” with {:method=>:get…

etc.

(I’m OS X 10.4.9, up to date Ruby/Rails/Gems and Safari/FF/OmniWeb
browsers.)

I figure it’s some simple thing that I changed or left out – but what I
can’t figure out is how do I determine WHICH simple thing I changed or
left out?

So: I’m not asking you to debug this one for me, I’m asking how do I go
about debugging this somewhat vague-seeming message?

Thanks!

Quoth Miss Elaine E.:

Thanks!
You might try the RoR mailing list / forum on rubyforum.
(Sorry, I love ruby, but know nothing about Rails.)

Regards,

Miss Elaine E. wrote:

I’m new to Ruby/Rails and doing pretty well and liking it a lot.
However, deep into one of the tutorials, I was feeling so confident that
I went several pages (read: hours) without double-checking that my
changes were still working. When I finally got to the part where I
thought “ok, I better check on this and see how it’s looking”, I got

Routing Error:
no route found to match “myapp” with {:method=>:get…

etc.

(I’m OS X 10.4.9, up to date Ruby/Rails/Gems and Safari/FF/OmniWeb
browsers.)

I figure it’s some simple thing that I changed or left out – but what I
can’t figure out is how do I determine WHICH simple thing I changed or
left out?

So: I’m not asking you to debug this one for me, I’m asking how do I go
about debugging this somewhat vague-seeming message?

Thanks!

Hi,

Check to make sure you have a myapp_controller.rb… The error message
is stating that Rails cannot find your controller class.

David B. Williams
http://www.cybersprocket.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs