<%= form_for(@user) do |f| %>
<%= render 'shared/error_messages', object: f.object %>
<%= f.label :name %>
<%= f.text_field :name, class: 'form-control' %>
<%= f.label :marks %>
<%= f.number_field :marks, class: 'form-control' %>
<%= f.submit "Save changes", class: "btn btn-primary" %>
<% end %>