1
0
Fork 0
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:
Carlos Antonio da Silva 2010-02-05 00:02:49 -02:00
parent 658059f31a
commit 49d1978863

View file

@ -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" %>