Forum: Ruby on Rails Problem with Windows not finding methods

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F4d678df78a4679bf1f7cd0e7cdc883d?d=identicon&s=25 Benjamin Orchard (Guest)
on 2006-04-03 21:33
(Received via mailing list)
I am running (testing) a noob-tube for myself as follows:
Windows XP SP2
lighty
ruby 1.8.x
rails 1.1
scgi

I have everything working fairly well, but with one minor exception:
the actions that I have defined as follows are not found.

class MytestController < ApplicationController
  def index
    render_text "Hello Nurse!"
  end
  def dilbert
    render_text "Dilbert rocks!"
  end
end

If I browse to 127.0.0.1 I get the default page, but if I then go to
127.0.0.1/mytest/index or ../mytest/dilbert, then I get the following
rather exciting error:


  Unknown action

No action responded to dilbert

It took me a while to get lighty and rails to talk nicely, but now that
I have it, I am quite happy.  Scgi is apparently working, but I need
this to work.  I am very new to rails, so go easy on me (however I am a
veteran of php/mysql/mssql setups).

Benjamin Orchard
2b891e820c238ded365d035771603f21?d=identicon&s=25 Bill Walton (Guest)
on 2006-04-03 21:55
(Received via mailing list)
Hi Benjamin,

Try browsing to localhost:3000/... or 127.0.0.1:3000/...  I think you
need
to specify the port number along with the IP address.

HTH,
Bill

----- Original Message -----
From: "Benjamin Orchard" <borchard@1tone.net>
To: <Rails@lists.rubyonrails.org>
Sent: 2006-04-03 2:32 PM
Subject: [Rails] Problem with Windows not finding methods
E9fd0a26f21517b453c368d0fb48bc12?d=identicon&s=25 Benjamin Orchard (Guest)
on 2006-04-03 22:07
(Received via mailing list)
I had that initially, but you only need to specify the port number if
you are using WEBrick (sp?) or haven't changed the default ports on
lighty.  I've tried that tactic without any luck.
Thanks for the suggestion, though--any other ideas?

Benjamin Orchard
D810e7436feb302a3e4e6b11895a7f65?d=identicon&s=25 Gael Pourriel (Guest)
on 2006-04-03 22:19
(Received via mailing list)
Do you get this running if you just use WebRick?

Gael
E9fd0a26f21517b453c368d0fb48bc12?d=identicon&s=25 Benjamin Orchard (Guest)
on 2006-04-03 22:25
(Received via mailing list)
Interesting--it works fine with WEbRick.  Which is fine, but it means
that I have no clue where to go from here.  Anyone have any ideas.

ben
2b891e820c238ded365d035771603f21?d=identicon&s=25 Bill Walton (Guest)
on 2006-04-03 22:31
(Received via mailing list)
Sorry I can't be of more help.  I had a bunch of similar problems early
on
and decided to use WEBrick for development so I could focus on learning
RoR.
That's enough for me to tackle right now ;-)  Best of luck to you
though.
Hope you'll post a How-To on the wiki when you get it figured out.

Best regards,
Bill

----- Original Message -----
From: "Benjamin Orchard" <orchard@clemson.edu>
To: <rails@lists.rubyonrails.org>
Sent: 2006-04-03 3:06 PM
Subject: Re: [Rails] Problem with Windows not finding methods


> > Try browsing to localhost:3000/... or 127.0.0.1:3000/...  I think you
need
E9fd0a26f21517b453c368d0fb48bc12?d=identicon&s=25 Benjamin Orchard (Guest)
on 2006-04-03 22:38
(Received via mailing list)
I may do the same, but right now it's not looking good.
D810e7436feb302a3e4e6b11895a7f65?d=identicon&s=25 Gael Pourriel (Guest)
on 2006-04-04 00:14
(Received via mailing list)
On 03/04/06, Benjamin Orchard <orchard@clemson.edu> wrote:
> Interesting--it works fine with WEbRick.  Which is fine, but it means
> that I have no clue where to go from here.  Anyone have any ideas.

OK this means the routing isn't working when you use SCGI, I never
tried SCGI with Lighty but I got it running with Apache easy, did you
generate a scgi.yaml file and made sure you didnt use the POSIX
signal? (i.e. scgi_ctrl config -S), then run scgi_service in your
rails project directory and it should work like a charm.

Gael
E9fd0a26f21517b453c368d0fb48bc12?d=identicon&s=25 Benjamin Orchard (Guest)
on 2006-04-04 03:14
(Received via mailing list)
Thanks--I'll try that, but I was fairly certain that I had done all
that.  I'll double check my configs and try it again.  I'll reply if I
find anything out.

ben
E9fd0a26f21517b453c368d0fb48bc12?d=identicon&s=25 Benjamin Orchard (Guest)
on 2006-04-05 15:17
(Received via mailing list)
I regenerated the scgi.yaml and it works fine--thanks!

Ben
This topic is locked and can not be replied to.