Rails: Unobtrusive and i18n JavaScript window.confirm
How many times do you heard you should separate content from behavior? Never? Hmmm don’t try to cheat me.. So, why do you still use :confirm
option for link_to
helper? Here a little snippet to archive our goal, and as extra bonus, we get it i18n.
Post a comment