Meals index, WIP
This commit is contained in:
@@ -18,6 +18,8 @@ en:
|
||||
field_formula: 'Formula'
|
||||
field_code: 'Formula'
|
||||
field_shortname: 'Short name'
|
||||
button_eat: 'Eat'
|
||||
button_note: 'Note'
|
||||
button_retake: 'Retake'
|
||||
button_child: 'Child'
|
||||
activerecord:
|
||||
|
||||
@@ -10,7 +10,12 @@ resources :projects, shallow: true do
|
||||
resources :ingredients, only: [] do
|
||||
post 'adjust/:adjustment', to: 'ingredients#adjust', as: :adjust, on: :member
|
||||
end
|
||||
resources :meals, only: [:index, :new, :create, :edit, :update, :destroy]
|
||||
resources :meals, only: [:index, :new, :create, :edit, :update, :destroy] do
|
||||
member do
|
||||
post 'note'
|
||||
post 'toggle_eaten'
|
||||
end
|
||||
end
|
||||
resources :measurement_routines, only: [:show, :edit] do
|
||||
member do
|
||||
get 'readouts', to: 'measurements#readouts'
|
||||
|
||||
Reference in New Issue
Block a user