Sha256: 8d9ad2db71189cce26f5f0dea20cdcfd6a66055841fb345b0f3b291c3174fdaf

Contents?: true

Size: 384 Bytes

Versions: 57

Compression:

Stored size: 384 Bytes

Contents

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

Version data entries

57 entries across 57 versions & 6 rubygems

Version Path
ramaze-2023.01.06 examples/helpers/identity.rb
Pistos-ramaze-2008.09 examples/helpers/identity.rb
Pistos-ramaze-2008.12 examples/helpers/identity.rb
Pistos-ramaze-2009.01 examples/helpers/identity.rb
Pistos-ramaze-2009.02 examples/helpers/identity.rb
Pistos-ramaze-2009.04.08 examples/helpers/identity.rb
Pistos-ramaze-2009.06.12 examples/helpers/identity.rb
clivecrous-ramaze-0.3.9.5 examples/identity.rb
manveru-ramaze-2008.07 examples/helpers/identity.rb
manveru-ramaze-2008.08 examples/helpers/identity.rb
manveru-ramaze-2008.09 examples/helpers/identity.rb
manveru-ramaze-2008.10 examples/helpers/identity.rb
manveru-ramaze-2008.12 examples/helpers/identity.rb
manveru-ramaze-2009.01 examples/helpers/identity.rb
manveru-ramaze-2009.04.01 examples/helpers/identity.rb
manveru-ramaze-2009.04.08 examples/helpers/identity.rb
manveru-ramaze-2009.04.18 examples/helpers/identity.rb
manveru-ramaze-2009.04.22 examples/helpers/identity.rb
manveru-ramaze-2009.04 examples/helpers/identity.rb
manveru-ramaze-2009.05.08 examples/helpers/identity.rb