This post originated from an RSS feed registered with Ruby Buzz
by Daniel Berger.
Original Post: Gone Camping
Feed Title: Testing 1,2,3...
Feed URL: http://djberg96.livejournal.com/data/rss
Feed Description: A blog on Ruby and other stuff.
I recently got tasked with one of those, "I need you to whip up a web interface" tasks that doesn't require anything nearly as heavy as J2EE/Rails/Catalyst/Whatever. A couple forms, one table, maybe a login screen. About 10 users, total. You know, the sort of thing you used to use CGI for.
But CGI is so, like, 90's man, and I wanted something that was lightweight and provided me with just enough "helper stuff" to make life easier. I found the perfect framework with Camping. It's small (4k). It uses MVC. You can run it on WEBrick out of the box. Your code fits in one file!
I did hit some Oracle issues, however, but we worked those out relatively quickly. In short, there was a sessions issue and you'll have to create one table and one sequence manually, but nothing serious. Good discussions resulted from my Oracle problems, however, and future versions of Camping will give you more choices in terms of how you handle sessions. Personally, I don't want db-based sessions for a "light" app like this.