Problems running rails with WEBrick

Discussion in 'Ruby' started by Don Coleman, Oct 8, 2004.

  1. Don Coleman

    Don Coleman Guest

    I'm having trouble getting rails to run through WEBrick. Is there a
    step I'm missing here?

    don@debian:~$ ruby -v
    ruby 1.8.2 (2004-08-24) [i386-linux]
    don@debian:~$ gem list --local
    *** LOCAL GEMS ***
    actionpack (0.8.5)
    activerecord (0.9.5)
    rails (0.7.0)
    rake (0.4.8)
    sources (0.0.1)

    don@debian:~$ mysqladmin create rails_production
    don@debian:~$ mysqladmin create rails_test
    don@debian:~$ rails ~/rails
    don@debian:~$ cd rails
    don@debian:~/rails$ sed -i '/^#!/{s,local/,,}'
    public/dispatch.{cgi,fcgi,rb,servlet}
    don@debian:~/rails$ sed -i '/^#!/{s,local/,,}' script/new_{controller,model}
    don@debian:~/rails$ script/new_controller Test
    don@debian:~/rails$ chmod +x public/dispatch.servlet
    don@debian:~/rails$ public/dispatch.servlet
    [2004-10-08 12:23:48] INFO WEBrick 1.3.1
    [2004-10-08 12:23:48] INFO ruby 1.8.2 (2004-08-24) [i386-linux]
    [2004-10-08 12:23:48] INFO WEBrick::HTTPServer#start: pid=5258 port=3000

    http://localhost:3000 displays Congratulations, you're on Rails!
    http://localhost:3000/test displays '/test' not found

    If I run do a similar procedure for a rails app running through Apache2,
    I'll get "No action responded to index" until I implement index in
    test_controller.
     
    Don Coleman, Oct 8, 2004
    #1
    1. Advertising

  2. On Sat, 9 Oct 2004 01:50:21 +0900, Don Coleman
    <> wrote:
    > http://localhost:3000 displays Congratulations, you're on Rails!
    > http://localhost:3000/test displays '/test' not found
    >
    > If I run do a similar procedure for a rails app running through Apache2,
    > I'll get "No action responded to index" until I implement index in
    > test_controller.


    The webrick servlet requires the trailing slash on "/test/". I believe
    that's in the list of things to be fixed. ;)

    --
    Kevin 'radsaq' Radloff
    http://saqataq.us/
     
    Kevin Radloff, Oct 8, 2004
    #2
    1. Advertising

  3. Don Coleman

    Don Coleman Guest

    > The webrick servlet requires the trailing slash on "/test/". I believe
    > that's in the list of things to be fixed. ;)


    The trailing slash did the trick. Thanks.
     
    Don Coleman, Oct 8, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Heinemeier Hansson

    Problems running webrick on 1.8.1/OS X 10.3

    David Heinemeier Hansson, Jan 13, 2004, in forum: Ruby
    Replies:
    0
    Views:
    116
    David Heinemeier Hansson
    Jan 13, 2004
  2. David Heinemeier Hansson

    [ANN] Rails 0.5.5: Windows, WEBrick, lots!

    David Heinemeier Hansson, Jul 29, 2004, in forum: Ruby
    Replies:
    9
    Views:
    146
    Carl Youngblood
    Jul 29, 2004
  3. Abraham Vionas
    Replies:
    1
    Views:
    152
    Sarah Tanembaum
    Dec 1, 2004
  4. Lloyd Zusman
    Replies:
    2
    Views:
    424
  5. Aaron Smith

    WEBrick::Daemon and WEBrick

    Aaron Smith, Mar 9, 2007, in forum: Ruby
    Replies:
    2
    Views:
    329
    Aaron Smith
    Mar 18, 2007
Loading...

Share This Page