1 <h1>Editing credit_card</h1>
3 <%= error_messages_for :credit_card %>
5 <% form_for(@credit_card) do |f| %>
8 <%= f.text_field :name %>
13 <%= f.text_field :number %>
17 <b>Card type</b><br />
18 <%= f.text_field :card_type %>
23 <%= f.text_field :month %>
28 <%= f.text_field :year %>
33 <%= f.text_field :cvv %>
37 <b>Street address</b><br />
38 <%= f.text_field :street_address %>
43 <%= f.text_field :city %>
48 <%= f.text_field :state %>
53 <%= f.text_field :country %>
58 <%= f.text_field :zip %>
62 <%= f.submit "Update" %>
66 <%= link_to 'Show', @credit_card %> |
67 <%= link_to 'Back', credit_cards_path %>