[webui] Fix some Rails4 fallout