1
0
This repository has been archived on 2023-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
2020-02-22 22:51:15 +01:00

7 lines
237 B
Plaintext

$('#new-ingredient').empty();
<% if current_view == :nutrients %>
$('#nutrients').html('<%= j render partial: 'ingredients/nutrients' %>');
<% else %>
$('#ingredients').html('<%= j render partial: 'ingredients/index' %>');
<% end %>