has two item_controller elements, one for api (in app / controller / api /) and one for backend (in application / controllers / backend)
Strong parameters are quite long (20 fields or something else) and tell me to develop a little. It would be impossible to maintain this list in both controllers, but since the needs are more or less the same with the create / updates actions, I would consider splitting the definition of strong parameters in a separate file that will be shared and
I tried to inherit these two supercontrollers, including only a strong parameter definition:
class SharedItemsController < ApplicationController private
No success, I'm stuck with unpermitted options
Hope to get some tips on this here at SO; it is better
source share