Rails js-routes: get path

110 Views Asked by At

In my rails app I'm trying to make a transition link in my javascript file with help of js-routes gem

$.get(Routes.pay_account_path(self.tour.ID(), {format: 'html'}), function () {
  return true;
});

This code seems correct, but there is no transition to path when I click on the button. In browser inspector network I see that http://example.dev/account/38469212-6116-91B2-591C-91D30FBDD6B6/pay.html response is OK

0

There are 0 best solutions below