devise_rails3_ennder 1.0.2 → 1.0.3

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
@@ -10,6 +10,10 @@
10
10
  == 1.0.1 / 2011-08-13
11
11
  * README.rdoc updated
12
12
 
13
- == 1.0.2 / 2011-08-13
13
+ == 1.0.2 / 2011-08-14
14
14
  * README.rdoc updated
15
- * added a link to a partial (users/_form_personal_fields.html.erb) in the user profile edition
15
+ * added a link to a partial (users/_form_personal_fields.html.erb) in the user profile edition
16
+
17
+ == 1.0.3 / 2011-08-14
18
+ * README.rdoc updated
19
+ * added locals :f the partial call (users/_form_personal_fields.html.erb)
data/README.rdoc CHANGED
@@ -1,19 +1,19 @@
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
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
- * adds a rake task *(devise_rails3_ennder:sync_devise_initializer)* to add the devise initializer configuration file (config/initializers/devise.rb)
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
11
  * adds extended devise translations (en, fr)
12
12
  * adds modified views for translations
13
13
 
14
14
  You will have to provide this partial filled with you User personal fields inputs
15
15
  * add the 13 devise routes to your routes, for the User model :
16
- devise_for :users
16
+ devise_for :users
17
17
 
18
18
  +This gem does not (you have to do it) :+
19
19
  * install the warden and devise gems* adds a link to a partial (users/_personal_fields.html.erb) in the user profile show
@@ -22,22 +22,22 @@ You will have to provide this partial filled with you User personal fields input
22
22
  * add the before_filter instruction to your ApplicationController :
23
23
  before_filter :authenticate_user!
24
24
  * configure your smtp setting, you must add in your environment configration file (dev / test /production) something like :
25
- config.action_mailer.smtp_settings = {
26
- :address => 'your_smtp_server_address.domain.com',
27
- :port => 25,
28
- :domain => "free.fr"
29
- }
25
+ config.action_mailer.smtp_settings = {
26
+ :address => 'your_smtp_server_address.domain.com',
27
+ :port => 25,
28
+ :domain => "free.fr"
29
+ }
30
30
  * add the login / logout partial to your layout, you must insert the following instruction :
31
- <%= render :partial => 'devise/shared/user_nav' %>
31
+ <%= render :partial => 'devise/shared/user_nav' %>
32
32
  * add the flash message div to your layout, to display the notice / error Devise messages :
33
- <%- flash.each do |name, msg| -%>
34
- <%= content_tag :div, msg, :id => "flash_#{name}" %>
35
- <%- end -%>
33
+ <%- flash.each do |name, msg| -%>
34
+ <%= content_tag :div, msg, :id => "flash_#{name}" %>
35
+ <%- end -%>
36
36
  * verify your routes for the user :
37
37
  Verify yourself in your routes configuration file, that the resources for the user model are not fully defined like this
38
- resources :users
38
+ resources :users
39
39
  If you have to add new routes to user, add them after re-specifying :
40
- devise_for :users
40
+ devise_for :users
41
41
 
42
42
  Right now devise is composed of 12 modules:
43
43
 
@@ -21,7 +21,7 @@
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' %>
24
+ <%= render :partial => 'users/form_personal_fields', :locals => { :f => f } %>
25
25
 
26
26
  <p><%= f.submit t('Update') %></p>
27
27
  <% end %>
@@ -12,7 +12,7 @@
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' %>
15
+ <%= render :partial => 'users/form_personal_fields', :locals => { :f => f } %>
16
16
 
17
17
  <p><%= f.submit t('devise.registrations.sign_up') %></p>
18
18
  <% end %>
data/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.0.3
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.2
5
+ version: 1.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - "Jos\xC3\xA9 VALIM, Carlos ANT\xC3\x94NIO, J\xC3\xA9r\xC3\xB4me BATAILLE"
@@ -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