Browse files

update readme

  • Loading branch information...
1 parent 810d087 commit 3613b20d92dd76705ca640e9b9c2df9c2fc5b528 @binarylogic committed Jun 1, 2012
Showing with 8 additions and 18 deletions.
  1. +8 −18 README.rdoc
  2. BIN authlogic-2.1.7.gem
View
26 README.rdoc
@@ -1,5 +1,7 @@
= Authlogic
+** This branch supports Rails 2 only! For Rails 3 go to the master branch **
+
Authlogic is a clean, simple, and unobtrusive ruby authentication solution.
A code example can replace a thousand words...
@@ -150,7 +152,7 @@ What if your user sessions controller could look just like your other controller
def new
@user_session = UserSession.new
end
-
+
def create
@user_session = UserSession.new(params[:user_session])
if @user_session.save
@@ -159,7 +161,7 @@ What if your user sessions controller could look just like your other controller
render :action => :new
end
end
-
+
def destroy
current_user_session.destroy
redirect_to new_user_session_url
@@ -183,13 +185,13 @@ Or how about persisting the session...
class ApplicationController
helper_method :current_user_session, :current_user
-
+
private
def current_user_session
return @current_user_session if defined?(@current_user_session)
@current_user_session = UserSession.find
end
-
+
def current_user
return @current_user if defined?(@current_user)
@current_user = current_user_session && current_user_session.user
@@ -198,21 +200,9 @@ Or how about persisting the session...
== Install & Use
-Install the gem / plugin (recommended)
-
-From rubyforge:
-
- $ sudo gem install authlogic
-
-Or from github:
-
- $ sudo gem install binarylogic-authlogic
-
-Now just add the gem dependency in your projects configuration.
-
-Or you can install this as a plugin:
+Add to your Gemfile
- script/plugin install git://github.com/binarylogic/authlogic.git
+ $ gem 'authlogic', '~> 2.1.0'
== Detailed Setup Tutorial
View
BIN authlogic-2.1.7.gem
Binary file not shown.

0 comments on commit 3613b20

Please sign in to comment.