RubyFlow The Ruby and Rails community linklog

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in