I have a update method that has dynamic incoming parameters in order to update the attributes I'd first like to change the params. This is hard to explain so I'll post some code and try to step through it.
@integration = current_account.integrations.find(params[:id])
attrs = params.require(:integration_webhook).permit(:filters)
flash[:success] = "Filters added"
attrs = params.require(:integration).permit(:filters)
param is missing or the value is empty: integration_pager_duty
To just resolve the integraion symbol:
def update attrs = params.require(integration).permit(:filters) # ... end private def integration :integration_webhook if params.has_key?(:integration_webhook) :integration_slack if params.has_key?(:integration_slack) end
But I think the resolution in Dynamic Strong params for require - Rails was more explicit.