mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
We do not need to check for registerable active inside the view.
This commit is contained in:
parent
658059f31a
commit
49d1978863
1 changed files with 10 additions and 12 deletions
|
@ -1,19 +1,17 @@
|
||||||
<h2>Sign up</h2>
|
<h2>Sign up</h2>
|
||||||
|
|
||||||
<%- if devise_mapping.registerable? %>
|
<% form_for resource_name, resource, :url => registration_path(resource_name) do |f| -%>
|
||||||
<% form_for resource_name, resource, :url => registration_path(resource_name) do |f| -%>
|
<%= f.error_messages %>
|
||||||
<%= f.error_messages %>
|
<p><%= f.label :email %></p>
|
||||||
<p><%= f.label :email %></p>
|
<p><%= f.text_field :email %></p>
|
||||||
<p><%= f.text_field :email %></p>
|
|
||||||
|
|
||||||
<p><%= f.label :password %></p>
|
<p><%= f.label :password %></p>
|
||||||
<p><%= f.password_field :password %></p>
|
<p><%= f.password_field :password %></p>
|
||||||
|
|
||||||
<p><%= f.label :password_confirmation %></p>
|
<p><%= f.label :password_confirmation %></p>
|
||||||
<p><%= f.password_field :password_confirmation %></p>
|
<p><%= f.password_field :password_confirmation %></p>
|
||||||
|
|
||||||
<p><%= f.submit "Register" %></p>
|
<p><%= f.submit "Register" %></p>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% end%>
|
|
||||||
|
|
||||||
<%= render :partial => "shared/devise_links" %>
|
<%= render :partial => "shared/devise_links" %>
|
||||||
|
|
Loading…
Reference in a new issue