/usr/share/doc/ruby-ramaze/examples/helpers/identity.rb is in ruby-ramaze 2012.12.08-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | require 'rubygems'
require 'ramaze'
class MainController < Ramaze::Controller
helper :identity
def index
if session[:openid_identity]
%{<h1>#{flash[:success]}</h1>
<p>You are logged in as #{session[:openid_identity]}</p>}
else
openid_login_form
end
end
end
Ramaze::Log.loggers.each{|l| l.log_levels << :dev }
Ramaze.start :adapter => :mongrel
|