IngredientsController#index WIP
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
module MealsHelper
|
||||
def action_links(m)
|
||||
def meal_links(m)
|
||||
delete_link(meal_path(m), {remote: true, data: {}}) if m.persisted?
|
||||
end
|
||||
def adjust_ingredient_link(i, adjustment)
|
||||
link_to "%+d" % adjustment, adjust_ingredient_path(i, adjustment: adjustment),
|
||||
{remote: true, method: :post}
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user