app/controllers/application_controller.rb
# This method takes the params receive from Axiom and then select those necessary for creating an object.
This method takes the params receive from Axiom and then select those necessary for creating an object.
This method takes the params receive from Axiom and then select those necessary for creating an object .
def select_params params, keys
          model ={}
          params.each do |key, value|
            if keys.include? key
              model[key]=value
            end
          end
          model
        end
def select_params params , keys model = { } params . each do | key , value | if keys . include? key model [ key ] = value end end model end
This method takes the params receive from Axiom and then select those necessary for creating an object.
This method takes the params receive from Axiom and then select those necessary for creating an object .
params
<not_specific>
keys
<not_specific>