Skip to content

Instantly share code, notes, and snippets.

@domagude
Last active October 16, 2017 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domagude/84ceec5efe2565702e325bd9f470f20d to your computer and use it in GitHub Desktop.
Save domagude/84ceec5efe2565702e325bd9f470f20d to your computer and use it in GitHub Desktop.
<%= bootstrap_form_for(resource,
:as => resource_name,
:url => registration_path(resource_name)) do |f| %>
<%= f.text_field :name,
placeholder: 'username (will be shown publicly)',
class: 'form-control' %>
<%= f.text_field :email,
placeholder: 'email',
class: 'form-control' %>
<%= f.password_field :password,
placeholder: 'password',
class: 'form-control' %>
<%= f.password_field :password_confirmation,
placeholder: 'password confirmation',
class: 'form-control' %>
<%= f.submit 'Sign up', class: 'btn sign-up-button' %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment