rails 4 controller fixes