How to access html request parameters for a .rhtml page served by webrick?

Posted by cibercitizen1 on Stack Overflow See other posts from Stack Overflow or by cibercitizen1
Published on 2010-05-02T08:53:24Z Indexed on 2010/05/02 8:57 UTC
Read the original article Hit count: 259

Filed under:
|
|

I'm using webrick (the built-in ruby webserver) to serve .rhtml files (html with ruby code embedded --like jsp).

It works fine, but I can't figure out how to access parameters (e.g. http://localhost/mypage.html?foo=bar) from within the ruby code in the .rhtml file. (Note that I'm not using the rails framework, only webrick + .rhtml files)

Thanks

© Stack Overflow or respective owner

Related posts about ruby

Related posts about rhtml