Sign up

<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :role => "form" }) do |f| %> <%= devise_error_messages! %>
<%= f.label :username %>
<%= f.text_field :username, :autofocus => true, class: "form-control" %>
<%= f.label :email %>
<%= f.email_field :email, class: "form-control" %>
<%= f.label :password %> <%= f.password_field :password, class: "form-control" %>
<%= f.label :password_confirmation %> <%= f.password_field :password_confirmation, class: "form-control" %>
<%= f.submit "Sign up", class: "btn btn-primary" %>
<% end %> <%= render "devise/shared/links" %>