devise_rails3_ennder 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -1
- data/README.rdoc +15 -16
- data/version.txt +1 -1
- metadata +4 -4
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -1,18 +1,19 @@
|
|
1
1
|
== Devise Rails 3 Ennder
|
2
2
|
|
3
|
-
Devise (translated in
|
3
|
+
Devise (*translated in French by Ennder, in this gem*) is a flexible authentication solution for Rails based on Warden.
|
4
4
|
|
5
|
-
What this gem does
|
6
|
-
|
7
|
-
|
5
|
+
+What this gem does :+
|
6
|
+
* adds a rake task (*devise_rails3_ennder:sync_user_model*) that adds a model 'User' that has devise enabled
|
7
|
+
* adds a rake task (*devise_rails3_ennder:sync_migrations*) to add a migration that creates the users table and its devise fields
|
8
8
|
You will be able to add your own fields to the User model only after that
|
9
|
-
|
9
|
+
* adds a rake task (*devise_rails3_ennder:sync_devise_initializer*) to add the devise initializer configuration file (config/initializers/devise.rb)
|
10
10
|
(You should configure devise with this task)
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
* adds extended devise translations (en, fr)
|
12
|
+
* adds modified views for translations
|
13
|
+
* add the 13 devise routes to your routes, for the User model :
|
14
|
+
devise_for :users
|
14
15
|
|
15
|
-
This gem does not (you have to do it)
|
16
|
+
+This gem does not (you have to do it) :+
|
16
17
|
* install the warden and devise gems
|
17
18
|
* lauch the 3 rake tasks
|
18
19
|
* add your
|
@@ -25,18 +26,16 @@ This gem does not (you have to do it) :
|
|
25
26
|
:domain => "free.fr"
|
26
27
|
}
|
27
28
|
* add the login / logout partial to your layout, you must insert the following instruction :
|
28
|
-
|
29
|
+
<pre> <%= render :partial => 'devise/shared/user_nav' %></pre>
|
29
30
|
* add the flash message div to your layout, to display the notice / error Devise messages
|
30
|
-
<pre>
|
31
31
|
<%- flash.each do |name, msg| -%>
|
32
32
|
<%= content_tag :div, msg, :id => "flash_#{name}" %>
|
33
33
|
<%- end -%>
|
34
|
-
</pre>
|
35
34
|
* verify your routes for the user
|
36
35
|
verify yourself in your routes configuration file, that the resources for the user model are not fully defined like this
|
37
|
-
|
36
|
+
resources :users
|
38
37
|
If you have to add new routes to user, add them after re-specifying :
|
39
|
-
|
38
|
+
devise_for :users
|
40
39
|
|
41
40
|
Right now devise is composed of 12 modules:
|
42
41
|
|
@@ -56,8 +55,8 @@ Right now devise is composed of 12 modules:
|
|
56
55
|
== Dependencies
|
57
56
|
|
58
57
|
Devise Rails 3 Ennder is based on :
|
59
|
-
|
60
|
-
|
58
|
+
* Devise
|
59
|
+
* Warden (http://github.com/hassox/warden), a Rack Authentication Framework so you need to install it as a gem. Please ensure you have it installed in order to use devise (see installation below).
|
61
60
|
|
62
61
|
== Installation
|
63
62
|
|
data/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: devise_rails3_ennder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.0.
|
5
|
+
version: 1.0.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- "Jos\xC3\xA9 VALIM, Carlos ANT\xC3\x94NIO, J\xC3\xA9r\xC3\xB4me BATAILLE"
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-08-
|
13
|
+
date: 2011-08-13 00:00:00 +02:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
version: 3.7.0
|
25
25
|
type: :development
|
26
26
|
version_requirements: *id001
|
27
|
-
description: Devise (translated in
|
27
|
+
description: Devise (*translated in French by Ennder, in this gem*) is a flexible authentication solution for Rails based on Warden.
|
28
28
|
email: mel@ennder.fr
|
29
29
|
executables:
|
30
30
|
- .directory
|
@@ -129,6 +129,6 @@ rubyforge_project: devise_rails3_ennder
|
|
129
129
|
rubygems_version: 1.6.2
|
130
130
|
signing_key:
|
131
131
|
specification_version: 3
|
132
|
-
summary: Devise (translated in
|
132
|
+
summary: Devise (*translated in French by Ennder, in this gem*) is a flexible authentication solution for Rails based on Warden.
|
133
133
|
test_files: []
|
134
134
|
|