quick fixes for rails 4