fix for rails4 routes

Rails4 does not accept match on routes anymore. You have to specify the request method or use resource.