use controller's private method cookies (for rails4)