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.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---