OWCPM is a captive portal written from scratch with Ruby on Rails.