[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

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

Miss Elaine Eos

9/24/2007 1:18:00 AM

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!

--
Please take off your pants or I won't read your e-mail.
I will not, no matter how "good" the deal, patronise any business which sends
unsolicited commercial e-mail or that advertises in discussion newsgroups.
2 Answers

Konrad Meyer

9/24/2007 1:41:00 AM

0

Quoth Miss Elaine Eos:
> 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!

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

Regards,
--
Konrad Meyer <konrad@tylerc.org> http://konrad.sobertil...

David B. Williams

9/24/2007 3:58:00 AM

0

Miss Elaine Eos 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.cybersp...
--
Posted via http://www.ruby-....