devise_rails3_ennder 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/README.rdoc +18 -16
- data/app/views/devise/registrations/edit.html.erb +2 -0
- data/app/views/devise/registrations/new.html.erb +2 -0
- data/version.txt +1 -1
- metadata +4 -4
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -1,22 +1,24 @@
|
|
1
1
|
== Devise Rails 3 Ennder
|
2
2
|
|
3
|
-
Devise (
|
3
|
+
Devise *(translated in French by Ennder, in this gem)* is a flexible authentication solution for Rails based on Warden.
|
4
4
|
|
5
5
|
+What this gem does :+
|
6
|
-
* adds a rake task
|
7
|
-
* adds a rake task
|
8
|
-
|
9
|
-
* adds a rake task (
|
10
|
-
|
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
|
+
You will be able to add your own fields to the User model only after that
|
9
|
+
* adds a rake task *(devise_rails3_ennder:sync_devise_initializer)* to add the devise initializer configuration file (config/initializers/devise.rb)
|
10
|
+
You should configure devise with this task
|
11
11
|
* adds extended devise translations (en, fr)
|
12
12
|
* adds modified views for translations
|
13
|
+
|
14
|
+
You will have to provide this partial filled with you User personal fields inputs
|
13
15
|
* add the 13 devise routes to your routes, for the User model :
|
14
16
|
devise_for :users
|
15
17
|
|
16
18
|
+This gem does not (you have to do it) :+
|
17
|
-
* install the warden and devise gems
|
19
|
+
* install the warden and devise gems* adds a link to a partial (users/_personal_fields.html.erb) in the user profile show
|
20
|
+
|
18
21
|
* lauch the 3 rake tasks
|
19
|
-
* add your
|
20
22
|
* add the before_filter instruction to your ApplicationController :
|
21
23
|
before_filter :authenticate_user!
|
22
24
|
* configure your smtp setting, you must add in your environment configration file (dev / test /production) something like :
|
@@ -26,16 +28,16 @@ Devise (*translated in French by Ennder, in this gem*) is a flexible authenticat
|
|
26
28
|
:domain => "free.fr"
|
27
29
|
}
|
28
30
|
* add the login / logout partial to your layout, you must insert the following instruction :
|
29
|
-
|
30
|
-
* add the flash message div to your layout, to display the notice / error Devise messages
|
31
|
+
<%= render :partial => 'devise/shared/user_nav' %>
|
32
|
+
* add the flash message div to your layout, to display the notice / error Devise messages :
|
31
33
|
<%- flash.each do |name, msg| -%>
|
32
34
|
<%= content_tag :div, msg, :id => "flash_#{name}" %>
|
33
35
|
<%- end -%>
|
34
|
-
* verify your routes for the user
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
36
|
+
* verify your routes for the user :
|
37
|
+
Verify yourself in your routes configuration file, that the resources for the user model are not fully defined like this
|
38
|
+
resources :users
|
39
|
+
If you have to add new routes to user, add them after re-specifying :
|
40
|
+
devise_for :users
|
39
41
|
|
40
42
|
Right now devise is composed of 12 modules:
|
41
43
|
|
@@ -72,7 +74,7 @@ Install devise gem:
|
|
72
74
|
|
73
75
|
gem install devise
|
74
76
|
|
75
|
-
Configure warden and devise gems inside your app:
|
77
|
+
Configure warden and devise gems inside your app Gemfile:
|
76
78
|
|
77
79
|
gem 'warden'
|
78
80
|
gem 'devise'
|
@@ -21,6 +21,8 @@
|
|
21
21
|
<p><%= f.label :current_password %> <i>(<%= t('devise.registrations.need_current_passord') %>)</i><br />
|
22
22
|
<%= f.password_field :current_password %></p>
|
23
23
|
|
24
|
+
<%= render :partial => 'users/form_personal_fields' %>
|
25
|
+
|
24
26
|
<p><%= f.submit t('Update') %></p>
|
25
27
|
<% end %>
|
26
28
|
|
data/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.2
|
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.2
|
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-14 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 (
|
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 (
|
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
|
|