Match syntax in rails 4 is slightly differet you have to specify the via: or use get rather than match