bekkou68 の日記

Gogengo! や IT 技術など。

Rails の warden-openid のログアウト - Logout of warden-openid of Rails

導入 - Introduction

以下の前のエントリで紹介した warden-openid のログインにログアウトを追加しました。 - I added the logout to the login of warden-openid introduced by the following entry.

http://d.hatena.ne.jp/bekkou68/20100816/1281886942

ソースコードは以下です。 - The source code is following,

http://github.com/bekkou68/openid


シンプルに logout メソッドを呼ぶだけです。かんたん! - You simply call logout method. Easy!
app/controllers/sessions_controller.rb

class SessionsController < ApplicationController
  ...

  def signout
    logout
    redirect_to :action => "new"
  end
end