Use get instead of match to be compatible with both Rails 3 and 4