Problems running rails with WEBrick

D

Don Coleman

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.
 
K

Kevin Radloff

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. ;)
 
D

Don Coleman

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,783
Latest member
RickeyDort

Latest Threads

Top