use get instead of match

Rails 4 compatibility