caf_text now working

redirects working for company now - although the overall structure is not clear in the app or in my mind
This commit is contained in:
2023-02-21 06:02:08 +00:00
parent 3b53f930be
commit a35b656cf3
4 changed files with 9 additions and 11 deletions

View File

@@ -1,10 +1,8 @@
<p style="color: green"><%= notice %></p>
<%= render @caf %>
<div>
<%= link_to "Edit this caf", edit_caf_path(@caf) %> |
<%= link_to "Back to cafs", cafs_path %>
<%= link_to "Edit this caf", edit_company_caf_path(@caf.company_id,@caf.id) %> |
<%= link_to "Back to cafs", company_cafs_path(@caf.company_id) %>
<%= button_to "Destroy this caf", @caf, method: :delete %>
<%= button_to "Destroy this caf", company_caf_path(@caf.id), method: :delete %>
</div>