<% content_for :page_title do %>
  <%= "#{this_blog.blog_name} - #{t('.sign_up', default: 'Sign up')}" %>
<% end %>

<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
  <%= devise_error_messages! %>

  <div class="form-group">
    <%= f.label :login %>
    <%= f.text_field :login, class: 'form-control', autofocus: true %>
  </div>

  <div class="form-group">
    <%= f.label :email %>
    <%= f.email_field :email, class: 'form-control' %>
  </div>

  <div class="form-group">
    <%= f.label :password %>
    <% if @minimum_password_length %>
      <em>(<%= t('devise_custom.characters_minimum', min: @minimum_password_length) %>)</em><br />
    <% end %>
    <%= f.password_field :password, class: 'form-control', autofocus: true, autocomplete: 'off' %>
  </div>

  <div class="form-group">
    <%= f.label :password_confirmation %><br />
    <%= f.password_field :password_confirmation, class: 'form-control', autocomplete: 'off' %>
  </div>

  <div class="actions">
    <%= f.submit t('.sign_up'), class: 'btn btn-lg btn-success btn-block' %>
  </div>
<% end %>

<%= render 'devise/shared/links' %>

<% content_for :page_title do %>
  <%= "#{this_blog.blog_name} - #{t('.sign_up', default: 'Sign up')}" %>
<% end %>

<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
  <%= render "devise/shared/error_messages", resource: resource %>

  <div class="form-group">
    <%= f.label :login %>
    <%= f.text_field :login, class: 'form-control', autofocus: true %>
  </div>

  <div class="form-group">
    <%= f.label :email %>
    <%= f.email_field :email, class: 'form-control' %>
  </div>

  <div class="form-group">
    <%= f.label :password %>
    <% if @minimum_password_length %>
      <em>(<%= t('devise_custom.characters_minimum', min: @minimum_password_length) %>)</em><br />
    <% end %>
    <%= f.password_field :password, class: 'form-control', autofocus: true, autocomplete: 'off' %>
  </div>

  <div class="form-group">
    <%= f.label :password_confirmation %><br />
    <%= f.password_field :password_confirmation, class: 'form-control', autocomplete: 'off' %>
  </div>

  <div class="actions">
    <%= f.submit t('.sign_up'), class: 'btn btn-lg btn-success btn-block' %>
  </div>
<% end %>

<%= render 'devise/shared/links' %>

Use new way to render Devise error messages in view override
Use new way to render Devise error messages in view override

This silences a deprecation warning about #devise_error_messages.
