1
0

List binding goal targets

This commit is contained in:
cryptogopher
2021-02-21 19:41:24 +01:00
parent 7f87b3bc84
commit 09e27eb754
18 changed files with 26 additions and 20 deletions

View File

@@ -1,7 +1,6 @@
# English strings go here for Rails i18n
en:
body_trackers_menu_caption: 'Body trackers'
body_trackers_title: 'Body trackers'
field_goal: 'Goal'
field_target: 'Target'
field_effective_from: 'Effective from'
@@ -50,6 +49,10 @@ en:
attributes:
nutrients:
duplicated_quantity: 'you can define each nutrient quantity only once per food'
threshold:
attributes:
quantity:
domain_mismatch: 'domain has to match model domain'
quantity:
attributes:
parent:

View File

@@ -9,6 +9,7 @@ resources :projects, shallow: true do
end
resources :goals do
member do
get 'targets', controller: :targets, action: :index, as: :targets
post 'toggle_exposure', controller: :targets
end
end