%= form_for(@card) do |f| %>
<% if @card.errors.any? %>
<%= pluralize(@card.errors.count, "error") %> prohibited this card from being saved:
<% @card.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.label :user %>
<%= collection_select(:card, :user_id, User.all.sort_by(&:name), :id, :name) %>
<%= f.label :name, "Card Note" %>
<%= f.text_field :name %>
<%= f.label :id, "Card DB ID" %>
<%= f.number_field :id, :in => 10...201 %>
<%= f.label :card_number, "Card Number" %>
<%= f.text_field :card_number %>
<%= f.label :card_permissions %>
<%= f.select :card_permissions, [["Enabled",1],["Disabled",255]] %>
<%= f.submit %>
<% end %>