Are you doing this to learn ruby, or get a Stack Apps app up and running? If you're looking to just get an app up, [try one of these libraries][1] - make life easier for yourself :) If you're looking to learn ruby (and thus don't want to use a library), well I've never used ruby so I can't help. [1]: http://stackapps.com/questions/tagged/ruby+library