Recreating snppt.bykev.in in Rails