devise_rails3_ennder 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -9,3 +9,7 @@
9
9
 
10
10
  == 1.0.1 / 2011-08-13
11
11
  * README.rdoc updated
12
+
13
+ == 1.0.2 / 2011-08-13
14
+ * README.rdoc updated
15
+ * added a link to a partial (users/_form_personal_fields.html.erb) in the user profile edition
data/README.rdoc CHANGED
@@ -1,22 +1,24 @@
1
1
  == Devise Rails 3 Ennder
2
2
 
3
- Devise (*translated in French by Ennder, in this gem*) is a flexible authentication solution for Rails based on Warden.
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 (*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)
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
- <pre> <%= render :partial =&gt; 'devise/shared/user_nav' %></pre>
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
- verify yourself in your routes configuration file, that the resources for the user model are not fully defined like this
36
- resources :users
37
- If you have to add new routes to user, add them after re-specifying :
38
- devise_for :users
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
 
@@ -12,6 +12,8 @@
12
12
  <p><%= f.label :password_confirmation %><br />
13
13
  <%= f.password_field :password_confirmation %></p>
14
14
 
15
+ <%= render :partial => 'users/form_personal_fields' %>
16
+
15
17
  <p><%= f.submit t('devise.registrations.sign_up') %></p>
16
18
  <% end %>
17
19
 
data/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.1
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.1
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 00:00:00 +02:00
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 (*translated in French by Ennder, in this gem*) is a flexible authentication solution for Rails based on Warden.
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 French by Ennder, in this gem*) is a flexible authentication solution for Rails based on Warden.
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