fix get params for rails 4