1
0

View tracking through params in Ingredients

Squeezed ingredient form
This commit is contained in:
cryptogopher
2020-04-04 02:13:46 +02:00
parent 738161fc43
commit f00f93c9e9
17 changed files with 47 additions and 62 deletions

View File

@@ -33,8 +33,8 @@ module IngredientsHelper
end
end
def action_links(i)
link_to(l(:button_edit), edit_ingredient_path(i, view_mode: current_view),
def action_links(i, view)
link_to(l(:button_edit), edit_ingredient_path(i, view: view),
{remote: true, class: "icon icon-edit"}) +
delete_link(ingredient_path(i), {remote: true, data: {}})
end