def instance_params
			model = get_model
			# get all params except for id, and the standard dates
			respond_to do |format|
				format.html {  }
				format.json do
					body = JSON.parse(request.body.read)
					if body.is_a? Hash
						pascal = model.model_name.singular_route_key.camelize
						camel = model.model_name.singular_route_key.camelize(:lower)
						snake = model.model_name.singular_route_key
						# instance_name 
						if body.has_key? snake
							params.merge!(body)
						# instanceName
						elsif body.has_key? camel
							params.merge!({snake => body[camel]})
						# InstanceName
						elsif body.has_key? pascal
							params.merge!({snake => body[pascal]})
						else
							params[model.model_name.singular_route_key] = body
						end
					end
				end
			end
			return params.require(model.model_name.singular_route_key.to_sym).permit(model.attribute_names.collect{|x| x.to_sym} - [:id,:created_at,:updated_at])
		end
def instance_params
			model = get_model
			# get all params except for id, and the standard dates
			respond_to do |format|
				format.html {  }
				format.json do
					body = JSON.parse(request.body.read)
					if body.is_a? Hash
						pascal = model.model_name.singular_route_key.camelize
						camel = model.model_name.singular_route_key.camelize(:lower)
						snake = model.model_name.singular_route_key
						# instance_name 
						if body.has_key? snake
							params.merge!(body)
						# instanceName
						elsif body.has_key? camel
							params.merge!({snake => body[camel]})
						# InstanceName
						elsif body.has_key? pascal
							params.merge!({snake => body[pascal]})
						else
							params[model.model_name.singular_route_key] = body
						end
					end
				end
			end
			return params.require(model.model_name.singular_route_key.to_sym).permit(model.attribute_names.collect{|x| x.to_sym} - [:id,:created_at,:updated_at])
		end
Never trust parameters from the scary internet, only allow the white list through.