check if there is a param or empty code example
Example 1: ruby on rails test if all parameters in json request are here
if(params.has_key?(:one) && params.has_key?(:two))
Example 2: rails params require check exists
params[:one].present?
if(params.has_key?(:one) && params.has_key?(:two))
params[:one].present?