Let's say I accept two different parameters on input: param1 and param2 but I don't allow them to be passed together. How do I error in that case? I need to notify the client they are sending something wrong
params.require(:key).permit(
:other_param,
:param1 || :param2).to_hash
Thanks
What about allowing them both and validates your logic in your controller?