Skip to content

Instantly share code, notes, and snippets.

@xander-miller
Created October 2, 2013 19:19
Show Gist options
  • Save xander-miller/6799106 to your computer and use it in GitHub Desktop.
Save xander-miller/6799106 to your computer and use it in GitHub Desktop.
Make the following changes to devise/registrations/new.html.erb:
<!-- add -->
<div class="control-group">
<%= f.label :name, class: 'control-label' %>
<div class="controls">
<%= f.text_field :name, :autofocus => true %>
</div>
</div>
<!-- end add -->
<div class="control-group">
<%= f.label :email, class: 'control-label' %>
<div class="controls">
<!-- remove -->
<%= f.email_field :email, :autofocus => true %>
<!-- end remove -->
<!-- replace with -->
<%= f.email_field :email %>
<!-- end replace -->
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment