add rails and text binding