1
0

Added Ingredient comment attribute

Minor view updates
This commit is contained in:
cryptogopher
2019-12-27 22:40:07 +01:00
parent 4d48e86728
commit cc62ef1002
10 changed files with 20 additions and 11 deletions

View File

@@ -88,6 +88,7 @@ class IngredientsController < ApplicationController
i_params = {
name: r.delete('Name'),
comment: r.delete('Comment'),
ref_amount: 100.0,
ref_unit: units['g'],
group: r.delete('Group') || :other,
@@ -176,6 +177,7 @@ class IngredientsController < ApplicationController
def ingredient_params
params.require(:ingredient).permit(
:name,
:comment,
:ref_amount,
:ref_unit_id,
:group,