Rails backend for CompareTo application