Skip to content

Commit

Permalink
Tobias: Add "New Payout" button to Trust#show
Browse files Browse the repository at this point in the history
This gets us to our next interaction in the system test and prepares to
build a form with the fields necessary to issue a Payout.
  • Loading branch information
zspencer committed Mar 25, 2024
1 parent c672ca8 commit b7f902b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/furniture/tobias/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ class Tobias
class Routes
def self.append_routes(router)
router.resources :tobiases, module: "tobias" do
router.resources :trusts
router.resources :trusts do
router.resources :payouts
end
end
end
end
Expand Down
4 changes: 3 additions & 1 deletion app/furniture/tobias/trusts/show.html.erb
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
<img src= "http://placekitten.com/200/300">
<h1>Trust <%= trust.id %></h1>

<%= link_to("New Payout", trust.location(:new, child: :payout)) %>

0 comments on commit b7f902b

Please sign in to comment.