1
0

Update notes in div

This commit is contained in:
cryptogopher
2020-04-19 18:16:07 +02:00
parent e659ecc760
commit 3706206191
9 changed files with 45 additions and 10 deletions

View File

@@ -19,7 +19,7 @@ en:
field_code: 'Formula'
field_shortname: 'Short name'
button_eat: 'Eat'
button_note: 'Note'
button_notes: 'Notes'
button_retake: 'Retake'
button_child: 'Child'
activerecord:

View File

@@ -12,7 +12,8 @@ resources :projects, shallow: true do
end
resources :meals, only: [:index, :new, :create, :edit, :update, :destroy] do
member do
post 'note'
get 'edit_notes'
patch 'update_notes'
post 'toggle_eaten'
end
end