Hello,
I have a webrick server which is stared using the following server script.
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'webrick' require 'webrick/https'
s = WEBrick::HTTPServer.new( :Port => 3000, :DocumentRoot => Dir::pwd + "/public", :SSLEnable => true, :SSLVerifyClient => ::OpenSSL::SSL::VERIFY_NONE, :SSLCertName => [ ["C","JP"], ["O","WEBrick.Org"], ["CN", "WWW"] ] ) trap("INT"){ s.shutdown } s.start
With this script, I am able to start the server and also access the static pages in the public directory or whatever directory I set the DocumentRoot to. But for some reason, it is unable to connect to my rails application pages.
I tried adding the following to routes.rb, map.connect '', :controller => 'employees', :action => 'list'
I want to access the "list" action in the "employees" controller using the url https://localhost:3000/
Would really appreciate if anyone can let me know if I am doing something fundamentally wrong here.