RailsCasts Pro episodes are now free!

Learn more or hide this

nsweeting's Profile

GitHub User: nsweeting

Comments by

Avatar

Hi there,

Trying to get a spinner on the submit button rather than just disabling it. Usually I just do it with:

<%= button_tag "Submit", class: 'mb-xs mt-xs mr-xs btn btn-primary btn-block', data: {disable_with: " Wait..."} %>

But this doesnt seem to work. Any ideas?

Thanks