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.
ソースコードは以下です。 - The source code is following,
シンプルに logout メソッドを呼ぶだけです。かんたん! - You simply call logout method. Easy!
app/controllers/sessions_controller.rb
class SessionsController < ApplicationController ... def signout logout redirect_to :action => "new" end end