Browse Source

feat: simplify "scheme_id: @scheme.id" to "@scheme"

pull/987/head
Sam Seed 4 years ago
parent
commit
281043d3aa
  1. 4
      app/views/locations/index.html.erb

4
app/views/locations/index.html.erb

@ -49,7 +49,7 @@
<% end %> <% end %>
<% end %> <% end %>
<% end %> <% end %>
<%= govuk_button_link_to "Add a location", new_scheme_location_path(scheme_id: @scheme.id), secondary: true %> <%= govuk_button_link_to "Add a location", new_scheme_location_path(@scheme), secondary: true %>
</div> </div>
</div> </div>
@ -105,7 +105,7 @@
<% end %> <% end %>
<% end %> <% end %>
<% end %> <% end %>
<%= govuk_button_link_to "Add a location", new_scheme_location_path(scheme_id: @scheme.id), secondary: true %> <%= govuk_button_link_to "Add a location", new_scheme_location_path(@scheme), secondary: true %>
<% end %> <% end %>

Loading…
Cancel
Save