intergrate rails with ui