aboutsummaryrefslogtreecommitdiff
path: root/app/views/resources/_edit.html.erb
blob: fdb2921b12b738a201bb1d9be802a37f125d4524 (plain)
1
2
3
4
5
6
<h3>Edit <%= resource.presence&.name || 'new resource' %></h3>
<h2>Context: <%= current_agent %></h2>

<%= form_with model: [current_agent,@resource] do |f| %>
    <%= render partial: 'form', locals: { resource: resource, f: f } %>
<% end %>