You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use simple_form gem then f.button :submit does not work even with html_safe method. f.button :button on the other hand works and you don't need html_safe.
# does work
<%= f.button :button, 'Sign in', data: { disable_with: '<i class="fa fa-circle-o-notch fa-spin fa-fw"></i>' } %>
# does not work
<%= f.button :submit, value: 'Sign in', data: { disable_with: '<i class="fa fa-circle-o-notch fa-spin fa-fw"></i>'.html_safe } %>
=button_to 'Load users', users_load_from_bb_path, remote: true, class: 'btn btn-default', data: { disable_with: "<i class='fa fa-spinner fa-spin'></i> Loading..." }
All works fine, except spinner. It's rendered as raw code.
The text was updated successfully, but these errors were encountered: