[webui] more preparations for rails 4