Added toggling Quantity primary-ness
This commit is contained in:
@@ -10,6 +10,7 @@ en:
|
||||
field_domain: 'Domain'
|
||||
field_parent_quantity: 'Parent'
|
||||
field_shortname: 'Short name'
|
||||
button_toggle: 'Toggle'
|
||||
activerecord:
|
||||
errors:
|
||||
models:
|
||||
|
||||
@@ -11,7 +11,9 @@ resources :projects do
|
||||
get 'nutrients', on: :collection
|
||||
end
|
||||
resources :sources, :only => [:index, :create, :destroy]
|
||||
resources :quantities, :only => [:index, :create, :destroy]
|
||||
resources :quantities, :only => [:index, :create, :destroy] do
|
||||
post 'toggle', on: :member
|
||||
end
|
||||
resources :units, :only => [:index, :create, :destroy]
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user