get active hash working under rails 4