bug fix after rails upgrade for form gen