I'm using haml and before i haven't any experience with haml. I'm fire ujs call whose code are below
= link_to "this is the best",cast_vote_cast_votes_path(job_application.id),:id => job_application.id ,:remote => true ,:class => 'btn btn-primary best-button'
after this call is fire my function "cast_vote" execute and i have templete with name "cast_vote.js.erb". In which i just want to execute alert of js. But alert is not executing why?
i don't know. Any help please..
cast_vote.js.erbfile look like?