drapergeek/findit

View on GitHub
app/views/users/_form.html.erb

Summary

Maintainability
Test Coverage
<%= simple_form_for @user, :html => { :class => 'form-horizontal' } do |f| %>
  <%= render 'shared/error_messages',:target => @user  %>

  <%= f.input :email %>
  <%= f.input :first_name %>
  <%= f.input :last_name %>
  <%= f.input :can_login %>
  <div class="form-actions">
    <%= f.button :submit, :class => 'btn-primary' %>
    <%= link_to t('.cancel', :default => t("helpers.links.cancel")),
                users_path, :class => 'btn' %>
  </div>
<% end %>