Last active
April 2, 2018 07:34
Star
You must be signed in to star a gist
How to make the disabled-link with CoffeeScript / for Ruby on Rails 5.1.4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).on 'turbolinks:load', -> | |
do -> | |
$('.disabled-link').click (e) -> | |
e.preventDefault() | |
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= link_to 'HOGE', '', class: 'disabled-link' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment