1
0

Created ingredients controller

command: rails generate redmine_plugin_controller body_tracking
ingredients index create destroy
This commit is contained in:
cryptogopher
2019-09-13 14:03:39 +02:00
parent 7062652d0d
commit c916e7fd3c
10 changed files with 80 additions and 2 deletions

View File

@@ -17,8 +17,10 @@ en:
heading: 'Summary'
sidebar:
heading_body_trackers: 'Body trackers'
heding_diet: 'Diet'
heading_common: 'Common'
link_summary: 'Summary'
link_ingredients: 'Ingredients'
link_quantities: 'Quantities'
link_units: 'Units'
link_defaults: 'Load defaults'

View File

@@ -6,7 +6,8 @@ resources :projects do
resources :body_trackers, :only => [:index] do
post 'defaults', on: :collection
end
resources :units, :only => [:index, :create, :destroy]
resources :ingredients, :only => [:index, :create, :destroy]
resources :quantities, :only => [:index, :create, :destroy]
resources :units, :only => [:index, :create, :destroy]
end
end