Fix rails shortcuts for rails 4