On Sep 21, 2005, at 1:36 PM, Paul wrote: > What follows is another basic solution using ActiveRecord only and > CGI. > There is minimal CSS styling, but you could add some very easily. > > What is interesting about this solution is that it's very small (a > single file and a single table), does not need users and sets itself > up. The solution uses sqlite3 (via gems) and checks if the database > file exists as part of the startup. If it doesn't exist, it creates > the > file and the table that it needs. > > Listing, searching, viewing details, creating new posts and closing > posts are supported. Each new post generates a 'secret' that the > person > posting can then use to close the post with latter, such that users > are > not required. Posts can also be 'administratively' closed. > > Additionally, although this solution is a single file, all the > interfaces are templated using ERB. Each template is a separate entry > after the __END__ marker, with the first non-whitespace line being the > name and all lines after until the separater line as the file > contents. > DRY principles are also in place as the header/footer are seperate > templates and included into each page rather then being repeated. Hey, this is great stuff! Glad to see that someone else had a chance to play around with this one. Don't feel bad when the summary doesn't mention it tomorrow. My schedule forced me to write it earlier today. :( Thanks for sharing the solution. James Edward Gray II