Make forms work in rails4