RoR and SpineJS