need HELP(tut/doc/*) to add a WebServer support to Rails same as WeBrick

Hi, I’m working on development of a secure WebServer and doing my web development work in Rails… so on the topic of adding a Server-Side-Scripting-Logic support, I thought what would be best than Integrating it with Rails. Is there any Help _ (tutorial/documentation/wiki/forum/paper/*)_ Material that I could refer to add this functionality.