integrate ui with rails