Fix some Rails style issues