diff --git a/app/furniture/tobias/routes.rb b/app/furniture/tobias/routes.rb index 26f1f5e6b..75cf6babd 100644 --- a/app/furniture/tobias/routes.rb +++ b/app/furniture/tobias/routes.rb @@ -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 diff --git a/app/furniture/tobias/trusts/show.html.erb b/app/furniture/tobias/trusts/show.html.erb index 667e845bd..15aa56292 100644 --- a/app/furniture/tobias/trusts/show.html.erb +++ b/app/furniture/tobias/trusts/show.html.erb @@ -1 +1,3 @@ - +

Trust <%= trust.id %>

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