Skip to content

Instantly share code, notes, and snippets.

@icemancast
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icemancast/3e99f2098ef4bbc5b5b8 to your computer and use it in GitHub Desktop.
Save icemancast/3e99f2098ef4bbc5b5b8 to your computer and use it in GitHub Desktop.
<%= link_to 'Deposit', new_transaction_path(type: 'deposit') %>
# routes
get 'transactions/new/:type' => 'transactions#new'
resources :transactions
transactions GET /transactions(.:format) transactions#index
POST /transactions(.:format) transactions#create
new_transaction GET /transactions/new(.:format) transactions#new
edit_transaction GET /transactions/:id/edit(.:format) transactions#edit
transaction GET /transactions/:id(.:format) transactions#show
PATCH /transactions/:id(.:format) transactions#update
PUT /transactions/:id(.:format) transactions#update
DELETE /transactions/:id(.:format) transactions#destroy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment