Issue with passing matchdata to rails model