Basic class for XHR-form in rails app