adds form functionality to rails