Sha256: aa6ebc3472db39800cd540ddbd9f9891664e9535233a15082513690adde3928d

Contents?: true

Size: 498 Bytes

Versions: 6

Compression:

Stored size: 498 Bytes

Contents

<p><%= link_to "Back to all accounts", root_path %></p>

<h1>Withdraw from <%= @account.name %>'s Account</h1>

<p>Balance: <%= @account.balance %></p>

<% if @withdraw.errors.present? %>
  <ul>
    <% @withdraw.errors.full_messages.each do |msg| %>
      <li><%= msg %></li>
    <% end %>
  </ul>
<% end %>

<%= form_for @withdraw, :as => :withdraw, :url => account_withdraw_path(@account) do |f| %>
  <%= f.label :amount %>
  <%= f.text_field :amount %>
  <%= f.submit "Deposit" %>
<% end %>




Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
command_model-2.0.1 examples/bank/app/views/accounts/withdraw_form.html.erb
command_model-2.0.0 examples/bank/app/views/accounts/withdraw_form.html.erb
command_model-1.3.0 examples/bank/app/views/accounts/withdraw_form.html.erb
command_model-1.2.0 examples/bank/app/views/accounts/withdraw_form.html.erb
command_model-1.1.0 examples/bank/app/views/accounts/withdraw_form.html.erb
command_model-1.0.0 examples/bank/app/views/accounts/withdraw_form.html.erb