rails integrated with form and table pages