Sha256: ea521cf95ce5b7a732fe60be38c19413225be31aedb193d6780abc457fc7aae7

Contents?: true

Size: 433 Bytes

Versions: 2

Compression:

Stored size: 433 Bytes

Contents

Bank::Application.routes.draw do
  get "accounts/:id/withdraw" => "accounts#withdraw_form", as: :account_withdraw_form
  post "accounts/:id/withdraw" => "accounts#withdraw", as: :account_withdraw

  get "accounts/:id/deposit" => "accounts#deposit_form", as: :account_deposit_form
  post "accounts/:id/deposit" => "accounts#deposit", as: :account_deposit

  resources :transfers, only: %w[new create]

  root to: "accounts#index"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
command_model-2.1.1 examples/bank/config/routes.rb
command_model-2.1.0 examples/bank/config/routes.rb