Sha256: c39fffcc474f0f2814ed6d19cf425452f6d751041b0847c6071d48cb7299c926
Contents?: true
Size: 488 Bytes
Versions: 2
Compression:
Stored size: 488 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
command_model-2.1.1 | examples/bank/app/views/accounts/withdraw_form.html.erb |
command_model-2.1.0 | examples/bank/app/views/accounts/withdraw_form.html.erb |