changed match to get for rails4