SixArm.com » Ruby » SignOutSimple provides typical sign out for a Rails web application
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.codeclimate/badges
.yardoc
doc
lib
test
.codeclimate.yml
.document
.gemtest
.gitattributes
.gitignore
.rspec
.travis.yml
CHANGES.md
CONTRIBUTING.md
Gemfile
LICENSE.md
README.md
Rakefile
VERSION
signin-extras.rb
sixarm_ruby_sign_out_simple-1.2.0-sha512.txt
sixarm_ruby_sign_out_simple-1.2.0.gem
sixarm_ruby_sign_out_simple.gemspec

README.md

SixArm.com → Ruby →
SignOutSimple gem for typical Rails user sign out

Gem Version Build Status Code Climate Maintainability Coverage Status

Introduction

SignInSimple provides methods for authentication in apps, such as typical Ruby On Rails web applications.

SignOutSimple clears the current user and shows a flash message.

For docs go to http://sixarm.com/sixarm_ruby_sign_out_simple/doc

Want to help? We're happy to get pull requests.

Install

Gem

Run this command in your shell or terminal:

gem install sixarm_ruby_sign_out_simple

Or add this to your Gemfile:

gem 'sixarm_ruby_sign_out_simple'

Require

To require the gem in your code:

require 'sixarm_ruby_sign_out_simple'

Details

The controller must define this method to clear the user:

current_user=(nil)

Routes must be able to redirect_to:

:sign_out_success
:sign_out_failure