app/views/devise/registrations/new.html.erb in mtdevise-2.0.5 vs app/views/devise/registrations/new.html.erb in mtdevise-2.5.0
- old
+ new
@@ -3,26 +3,25 @@
<div class="panel panel-primary">
<div class="panel-heading">
<div class="panel-title">Sign-Up</div>
</div>
<div style="padding-top:30px" class="panel-body">
- <%= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: {class: 'form-vertical multiple_tags', role: 'form'}) do |f| %>
- <%= f.error_notification %>
- <%= render 'shared/validation', object: f.object %>
+ <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), html: { role: "form" }) do |f| %>
+ <%= devise_error_messages! %>
<div style="margin-bottom: 25px" class="input-group">
<span class="input-group-addon"><i class="fa fa-envelope"></i></span>
- <%= f.input_field :email, required: true, autofocus: true, :class => "form-control", :placeholder => "Email" %>
+ <%= f.email_field :email, required: true, autofocus: true, class: "form-control", :placeholder => "Email" %>
</div>
<div style="margin-bottom: 25px" class="input-group">
<span class="input-group-addon"><i class="fa fa-asterisk"></i></span>
- <%= f.input_field :password, required: true, :class => "form-control", :placeholder => "Password", hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length) %>
+ <%= f.password_field :password, required: true, class: "form-control", :placeholder => "Password", hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length) %>
</div>
<div style="margin-bottom: 25px" class="input-group">
<span class="input-group-addon"><i class="fa fa-asterisk"></i></span>
- <%= f.input_field :password_confirmation, required: true, :class => "form-control", :placeholder => "Confirm Password" %>
+ <%= f.password_field :password_confirmation, required: true, class: "form-control", :placeholder => "Confirm Password" %>
</div>
<div style="margin-top:10px" class="form-group">
- <%= f.button :submit, "Sign-Up", :class => "btn btn-primary" %>
+ <%= f.submit "Sign-Up", class: "btn btn-primary" %>
</div>
<div id="loginborder">
<%= render "devise/shared/links" %>
</div>
<% end %>