Today I researched some more on WEBrick, learning about servlets, get/post, response/request, and ERB. I was able to get a simple home page going for my Tic Tac Toe program. Similar to the other UIs I've worked on, this WEBrick version will also make sure MongoDB is properly installed before enabling the 4x4 option. The select inputs are retrieving their "options" from the config.rb I created for a recent story. Here is what I have so far.
The only problem I'm facing now is figuring out how to test WEBrick. And by that I mean, how to properly test that the options a user picks actually creates the proper board and players. I googled around a bit and found out Sermoa created a wiki called licky and created her own testing framework. I'll probably end up using net/http library inspired from her project.
To retrieve the data from config.rb to HTML, I googled around to find out how to run blocks in ERB. This Stack Overflow question helped me solve the problem. Here is how I pull the data:
<select name="board">
<% TTT::CONFIG.boards.active.each do |board| %>
<option><%= board %></option>
<% end %>
</select>
Tomorrow, I plan to work on the story which calls for displaying the Tic Tac Toe board on WEBrick and start by creating tests first.