changes for rails 4.1.8 including match, put