Shibkit-rails-example is a project mainly written in ..., it's free.
Very simple web application using Shibkit for authnz