add converted nil to empty string for adding ruledata

maybe in one string? params.each_pair {|key,value| ...