×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Ruby
Posted by: Lori DK
Added: Apr 28, 2017 3:39 PM
Modified: May 15, 2017 5:43 PM
Views: 21
Tags: ruby rails
  1.  <%= form_for(@user) do |f| %>
  2.         <%= render 'shared/error_messages' %>
  3.  
  4.         <%= f.label :name %>
  5.         <%= f.text_field :name, class: 'form-control' %>
  6.  
  7.         <%= f.label :email %>
  8.         <%= f.email_field :email, class: 'form-control' %>
  9.  
  10.         <%= f.label :password %>
  11.         <%= f.password_field :password, class: 'form-control' %>
  12.  
  13.         <%= f.label :password_confirmation, "Confirmation" %>
  14.         <%= f.password_field :password_confirmation, class: 'form-control' %>
  15.  
  16.         <%= f.submit "Create my account", class: "btn btn-primary" %>
  17.     <% end %>