Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add devise gem

  • Loading branch information...
commit d1c23e8cedc0754a940f5f3697e3ab6dce202855 1 parent 5f16b3b
@miau715 authored
Showing with 31 additions and 1 deletion.
  1. +2 −0  Gemfile
  2. +8 −0 Gemfile.lock
  3. +2 −0  config/routes.rb
  4. +19 −1 db/schema.rb
View
2  Gemfile
@@ -31,3 +31,5 @@ group :test do
# Pretty printed test output
gem 'turn', :require => false
end
+
+gem "devise"
View
8 Gemfile.lock
@@ -41,6 +41,10 @@ GEM
coffee-script-source
execjs
coffee-script-source (1.1.2)
+ devise (1.4.7)
+ bcrypt-ruby (~> 3.0)
+ orm_adapter (~> 0.0.3)
+ warden (~> 1.0.3)
erubis (2.7.0)
execjs (1.2.8)
multi_json (~> 1.0)
@@ -55,6 +59,7 @@ GEM
treetop (~> 1.4.8)
mime-types (1.16)
multi_json (1.0.3)
+ orm_adapter (0.0.5)
polyglot (0.3.2)
rack (1.3.3)
rack-cache (1.0.3)
@@ -105,12 +110,15 @@ GEM
uglifier (1.0.3)
execjs (>= 0.3.0)
multi_json (>= 1.0.2)
+ warden (1.0.5)
+ rack (>= 1.0)
PLATFORMS
x86-mingw32
DEPENDENCIES
coffee-rails (~> 3.1.0)
+ devise
jquery-rails
rails (= 3.1.0)
sass-rails (~> 3.1.0)
View
2  config/routes.rb
@@ -1,4 +1,6 @@
CatLottery::Application.routes.draw do
+ devise_for :users
+
# The priority is based upon order of creation:
# first created -> highest priority.
View
20 db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20110923124637) do
+ActiveRecord::Schema.define(:version => 20111018164629) do
create_table "cats", :force => true do |t|
t.string "name"
@@ -19,4 +19,22 @@
t.datetime "updated_at"
end
+ create_table "users", :force => true do |t|
+ t.string "email", :default => "", :null => false
+ t.string "encrypted_password", :limit => 128, :default => "", :null => false
+ t.string "reset_password_token"
+ t.datetime "reset_password_sent_at"
+ t.datetime "remember_created_at"
+ t.integer "sign_in_count", :default => 0
+ t.datetime "current_sign_in_at"
+ t.datetime "last_sign_in_at"
+ t.string "current_sign_in_ip"
+ t.string "last_sign_in_ip"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ add_index "users", ["email"], :name => "index_users_on_email", :unique => true
+ add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
+
end
Please sign in to comment.
Something went wrong with that request. Please try again.