Forum: Ruby on Rails kickstarting with rails routing problem

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.
Zac E. (Guest)
on 2006-03-01 21:55
I've rewritten my kickstart cgi in rails with DB acces to the host list
and the testing is perfect.   I can send the macaddress in the
HTTPrequest Header, rails looks up the macaddr in the machine db and
spits back out a kickstart file for the machine..

however in real world usage what I get is a request for
http://server//kickstarts/kickme which rails fails with
192.168.20.176 - - [01/Mar/2006:14:29:56 EST] "GET //kickstarts/kickme
HTTP/1.1" 404 595
- -> //kickstarts/kickme

Routing Error

Recognition failed for "/kickme"

which is true because //kickstarts doesn't exist.   I've tried

map.connect '//kickstarts/kickme',:controller => 'kickstarts', :action
=> 'kickme'

but it comes up the same with //=404.   anyone know how to manage this
double slash?

thanks

-zaq
Zac E. (Guest)
on 2006-03-01 21:58
zac elston wrote:
sorry, the kickstart request is "/./"

192.168.20.251 - - [01/Mar/2006:14:28:44 EST] "GET /./kickstarts/kickme
HTTP/1.0" 404 608
- -> /./kickstarts/kickme

but the issue remains the same
Zac E. (Guest)
on 2006-03-01 23:57
this did the trick

map.connect '/./kickstarts/kickme',:controller => 'kickstarts', :action
=> 'kickme'
This topic is locked and can not be replied to.